invoicesrpc: create sub server

Sub server implementation is still empty. This is a preparatory
step for adding invoice functionality.
This commit is contained in:
Joost Jager committed 2019-02-01 09:42:35 +01:00
1 parent bacd92418a
commit 3545685177
11 files changed
+321 -3

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
// +build invoicesrpc
package invoicesrpc
import (
"github.com/lightningnetwork/lnd/invoices"
)
// Config is the primary configuration struct for the invoices RPC server. It
// contains all the items required for the rpc server to carry out its
// duties. The fields with struct tags are meant to be parsed as normal
// configuration options, while if able to be populated, the latter fields MUST
// also be specified.
type Config struct {
InvoiceRegistry *invoices.InvoiceRegistry
}