Documentation
¶
Index ¶
- func UseLogger(logger logging.Logger)
- type Backend
- type LND
- func (lnd *LND) Connect() error
- func (lnd *LND) GetInvoice(message string, amount int64, expiry int64) (invoice string, paymentHash []byte, err error)
- func (lnd *LND) InvoiceSettled(paymentHash []byte) (settled bool, err error)
- func (lnd *LND) KeepAliveRequest() error
- func (lnd *LND) SubscribeInvoices(publish PublishInvoiceSettled, rescan RescanPendingInvoices) error
- type PublishInvoiceSettled
- type RescanPendingInvoices
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend interface {
Connect() error
// Amount in satoshi and expiry in seconds
GetInvoice(description string, amount int64, expiry int64) (invoice string, paymentHash []byte, err error)
InvoiceSettled(paymentHash []byte) (settled bool, err error)
SubscribeInvoices(publish PublishInvoiceSettled, rescan RescanPendingInvoices) error
KeepAliveRequest() error
}
type LND ¶
type LND struct {
GRPCHost string `long:"grpchost" Description:"Host of the gRPC interface of LND"`
CertFile string `long:"certfile" Description:"TLS certificate for the LND gRPC and REST services"`
MacaroonFile string `long:"macaroonfile" Description:"Macaroon file for authentication. Set to an empty string for no macaroon"`
// contains filtered or unexported fields
}
func (*LND) GetInvoice ¶
func (*LND) InvoiceSettled ¶
func (*LND) KeepAliveRequest ¶
func (*LND) SubscribeInvoices ¶
func (lnd *LND) SubscribeInvoices(publish PublishInvoiceSettled, rescan RescanPendingInvoices) error
type PublishInvoiceSettled ¶
type PublishInvoiceSettled func(invoice string)
For callbacks when an invoice gets settled
Click to show internal directories.
Click to hide internal directories.