Documentation
¶
Index ¶
Constants ¶
View Source
const ( InvoiceExpiryMins = 10 FeePercent float64 = 0.01 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
CreateInvoice(amount uint64) (Invoice, error)
InvoiceStatus(hash string) (Invoice, error)
FeeReserve(amount uint64) uint64
SendPayment(request string, amount uint64) (string, error)
}
Client interface to interact with a Lightning backend
type LndClient ¶
type LndClient struct {
// contains filtered or unexported fields
}
func SetupLndClient ¶ added in v0.2.0
func (*LndClient) CreateInvoice ¶
func (*LndClient) FeeReserve ¶
func (*LndClient) InvoiceStatus ¶ added in v0.2.0
type LndConfig ¶ added in v0.2.0
type LndConfig struct {
GRPCHost string
Cert credentials.TransportCredentials
Macaroon macaroons.MacaroonCredential
}
type SendPaymentResponse ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.