lnd

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

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 New

func New(c *config.Network, logger logging.Logger) (*Backend, error)

func (Backend) Client

func (l Backend) Client(ctx context.Context) (*Client, error)

func (Backend) CreateInvoice

func (l Backend) CreateInvoice(ctx context.Context, amount int64, desc string) (*models.Invoice, error)

func (Backend) DecodePayReq

func (l Backend) DecodePayReq(ctx context.Context, payreq string) (*models.PayReq, error)

func (Backend) GetChannelInfo

func (l Backend) GetChannelInfo(ctx context.Context, channel *models.Channel) error

func (Backend) GetChannelsBalance

func (l Backend) GetChannelsBalance(ctx context.Context) (*models.ChannelsBalance, error)

func (Backend) GetForwardingHistory added in v0.4.0

func (l Backend) GetForwardingHistory(ctx context.Context, startTime string, maxNumEvents uint32) ([]*models.ForwardingEvent, error)

func (Backend) GetInvoice

func (l Backend) GetInvoice(ctx context.Context, RHash string) (*models.Invoice, error)

func (Backend) GetNode

func (l Backend) GetNode(ctx context.Context, pubkey string, includeChannels bool) (*models.Node, error)

func (Backend) GetTransactions added in v0.1.0

func (l Backend) GetTransactions(ctx context.Context) ([]*models.Transaction, error)

func (Backend) GetWalletBalance

func (l Backend) GetWalletBalance(ctx context.Context) (*models.WalletBalance, error)

func (Backend) Info

func (l Backend) Info(ctx context.Context) (*models.Info, error)

func (Backend) ListChannels

func (l Backend) ListChannels(ctx context.Context, opt ...options.Channel) ([]*models.Channel, error)

func (Backend) NewClientConn

func (l Backend) NewClientConn() (*grpc.ClientConn, error)

func (Backend) NodeName

func (l Backend) NodeName() string

func (Backend) Ping

func (l Backend) Ping() error

func (Backend) RouterClient added in v0.2.0

func (l Backend) RouterClient(ctx context.Context) (*RouterClient, error)

func (Backend) SendPayment

func (l Backend) SendPayment(ctx context.Context, payreq *models.PayReq) (*models.Payment, error)

func (Backend) SubscribeChannels

func (l Backend) SubscribeChannels(ctx context.Context, events chan *models.ChannelUpdate) error

func (Backend) SubscribeGraphEvents added in v0.4.0

func (l Backend) SubscribeGraphEvents(ctx context.Context, events chan *models.ChannelEdgeUpdate) error

func (Backend) SubscribeInvoice

func (l Backend) SubscribeInvoice(ctx context.Context, channelInvoice chan *models.Invoice) error

func (Backend) SubscribeRoutingEvents added in v0.2.0

func (l Backend) SubscribeRoutingEvents(ctx context.Context, channelEvents chan *models.RoutingEvent) error

func (Backend) SubscribeTransactions added in v0.1.0

func (l Backend) SubscribeTransactions(ctx context.Context, channel chan *models.Transaction) error

type Client

type Client struct {
	lnrpc.LightningClient
	// contains filtered or unexported fields
}

func (*Client) Close

func (c *Client) Close() error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL