Documentation ¶
Index ¶
- type Backend
- func (l Backend) Client(ctx context.Context) (*Client, error)
- func (l Backend) CreateInvoice(ctx context.Context, amount int64, desc string) (*models.Invoice, error)
- func (l Backend) DecodePayReq(ctx context.Context, payreq string) (*models.PayReq, error)
- func (l Backend) GetChannelInfo(ctx context.Context, channel *models.Channel) error
- func (l Backend) GetChannelsBalance(ctx context.Context) (*models.ChannelsBalance, error)
- func (l Backend) GetForwardingHistory(ctx context.Context, startTime string, maxNumEvents uint32) ([]*models.ForwardingEvent, error)
- func (l Backend) GetInvoice(ctx context.Context, RHash string) (*models.Invoice, error)
- func (l Backend) GetNode(ctx context.Context, pubkey string, includeChannels bool) (*models.Node, error)
- func (l Backend) GetTransactions(ctx context.Context) ([]*models.Transaction, error)
- func (l Backend) GetWalletBalance(ctx context.Context) (*models.WalletBalance, error)
- func (l Backend) Info(ctx context.Context) (*models.Info, error)
- func (l Backend) ListChannels(ctx context.Context, opt ...options.Channel) ([]*models.Channel, error)
- func (l Backend) NewClientConn() (*grpc.ClientConn, error)
- func (l Backend) NodeName() string
- func (l Backend) Ping() error
- func (l Backend) RouterClient(ctx context.Context) (*RouterClient, error)
- func (l Backend) SendPayment(ctx context.Context, payreq *models.PayReq) (*models.Payment, error)
- func (l Backend) SubscribeChannels(ctx context.Context, events chan *models.ChannelUpdate) error
- func (l Backend) SubscribeGraphEvents(ctx context.Context, events chan *models.ChannelEdgeUpdate) error
- func (l Backend) SubscribeInvoice(ctx context.Context, channelInvoice chan *models.Invoice) error
- func (l Backend) SubscribeRoutingEvents(ctx context.Context, channelEvents chan *models.RoutingEvent) error
- func (l Backend) SubscribeTransactions(ctx context.Context, channel chan *models.Transaction) error
- type Client
- type RouterClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func (Backend) CreateInvoice ¶
func (Backend) DecodePayReq ¶
func (Backend) GetChannelInfo ¶
func (Backend) GetChannelsBalance ¶
func (Backend) GetForwardingHistory ¶ added in v0.4.0
func (Backend) GetInvoice ¶
func (Backend) GetTransactions ¶ added in v0.1.0
func (Backend) GetWalletBalance ¶
func (Backend) ListChannels ¶
func (Backend) NewClientConn ¶
func (l Backend) NewClientConn() (*grpc.ClientConn, error)
func (Backend) RouterClient ¶ added in v0.2.0
func (l Backend) RouterClient(ctx context.Context) (*RouterClient, error)
func (Backend) SendPayment ¶
func (Backend) SubscribeChannels ¶
func (Backend) SubscribeGraphEvents ¶ added in v0.4.0
func (Backend) SubscribeInvoice ¶
func (Backend) SubscribeRoutingEvents ¶ added in v0.2.0
func (Backend) SubscribeTransactions ¶ added in v0.1.0
type Client ¶
type Client struct { lnrpc.LightningClient // contains filtered or unexported fields }
type RouterClient ¶ added in v0.2.0
type RouterClient struct { routerrpc.RouterClient // contains filtered or unexported fields }
func (*RouterClient) Close ¶ added in v0.2.0
func (c *RouterClient) Close() error
Click to show internal directories.
Click to hide internal directories.