Documentation
¶
Index ¶
Constants ¶
View Source
const ( LND_HOST = "LND_REST_HOST" LND_CERT_PATH = "LND_CERT_PATH" LND_MACAROON_PATH = "LND_MACAROON_PATH" )
View Source
const ( InvoiceExpiryMins = 10 FeePercent = 1 )
View Source
const (
LND = "Lnd"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
CreateInvoice(amount uint64) (Invoice, error)
InvoiceSettled(hash string) bool
FeeReserve(request string) (uint64, uint64, error)
SendPayment(request string) (string, error)
}
Client interface to interact with a Lightning backend
func NewLightningClient ¶
func NewLightningClient() Client
type LndClient ¶
type LndClient struct {
// contains filtered or unexported fields
}
func CreateLndClient ¶
func (*LndClient) CreateInvoice ¶
func (*LndClient) FeeReserve ¶
func (*LndClient) InvoiceSettled ¶
Click to show internal directories.
Click to hide internal directories.