Documentation ¶
Index ¶
- func NewLNDService(ctx context.Context, eventPublisher events.EventPublisher, ...) (result lnclient.LNClient, err error)
- type LNDService
- func (svc *LNDService) CloseChannel(ctx context.Context, closeChannelRequest *lnclient.CloseChannelRequest) (*lnclient.CloseChannelResponse, error)
- func (svc *LNDService) ConnectPeer(ctx context.Context, connectPeerRequest *lnclient.ConnectPeerRequest) error
- func (svc *LNDService) DisconnectPeer(ctx context.Context, peerId string) error
- func (svc *LNDService) GetBalances(ctx context.Context) (*lnclient.BalancesResponse, error)
- func (svc *LNDService) GetInfo(ctx context.Context) (info *lnclient.NodeInfo, err error)
- func (svc *LNDService) GetLogOutput(ctx context.Context, maxLen int) ([]byte, error)
- func (svc *LNDService) GetNetworkGraph(ctx context.Context, nodeIds []string) (lnclient.NetworkGraphResponse, error)
- func (svc *LNDService) GetNewOnchainAddress(ctx context.Context) (string, error)
- func (svc *LNDService) GetNodeConnectionInfo(ctx context.Context) (nodeConnectionInfo *lnclient.NodeConnectionInfo, err error)
- func (svc *LNDService) GetNodeStatus(ctx context.Context) (nodeStatus *lnclient.NodeStatus, err error)
- func (svc *LNDService) GetOnchainBalance(ctx context.Context) (*lnclient.OnchainBalanceResponse, error)
- func (svc *LNDService) GetPubkey() string
- func (svc *LNDService) GetStorageDir() (string, error)
- func (svc *LNDService) GetSupportedNIP47Methods() []string
- func (svc *LNDService) GetSupportedNIP47NotificationTypes() []string
- func (svc *LNDService) ListChannels(ctx context.Context) ([]lnclient.Channel, error)
- func (svc *LNDService) ListPeers(ctx context.Context) ([]lnclient.PeerDetails, error)
- func (svc *LNDService) ListTransactions(ctx context.Context, from, until, limit, offset uint64, unpaid bool, ...) (transactions []lnclient.Transaction, err error)
- func (svc *LNDService) LookupInvoice(ctx context.Context, paymentHash string) (transaction *lnclient.Transaction, err error)
- func (svc *LNDService) MakeInvoice(ctx context.Context, amount int64, description string, descriptionHash string, ...) (transaction *lnclient.Transaction, err error)
- func (svc *LNDService) OpenChannel(ctx context.Context, openChannelRequest *lnclient.OpenChannelRequest) (*lnclient.OpenChannelResponse, error)
- func (svc *LNDService) RedeemOnchainFunds(ctx context.Context, toAddress string, amount uint64, sendAll bool) (txId string, err error)
- func (svc *LNDService) ResetRouter(key string) error
- func (svc *LNDService) SendKeysend(ctx context.Context, amount uint64, destination string, ...) (*lnclient.PayKeysendResponse, error)
- func (svc *LNDService) SendPaymentProbes(ctx context.Context, invoice string) error
- func (svc *LNDService) SendPaymentSync(ctx context.Context, payReq string) (*lnclient.PayInvoiceResponse, error)
- func (svc *LNDService) SendSpontaneousPaymentProbes(ctx context.Context, amountMsat uint64, nodeId string) error
- func (svc *LNDService) Shutdown() error
- func (svc *LNDService) SignMessage(ctx context.Context, message string) (string, error)
- func (svc *LNDService) UpdateChannel(ctx context.Context, updateChannelRequest *lnclient.UpdateChannelRequest) error
- func (svc *LNDService) UpdateLastWalletSyncRequest()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLNDService ¶
Types ¶
type LNDService ¶
type LNDService struct {
// contains filtered or unexported fields
}
func (*LNDService) CloseChannel ¶
func (svc *LNDService) CloseChannel(ctx context.Context, closeChannelRequest *lnclient.CloseChannelRequest) (*lnclient.CloseChannelResponse, error)
func (*LNDService) ConnectPeer ¶
func (svc *LNDService) ConnectPeer(ctx context.Context, connectPeerRequest *lnclient.ConnectPeerRequest) error
func (*LNDService) DisconnectPeer ¶
func (svc *LNDService) DisconnectPeer(ctx context.Context, peerId string) error
func (*LNDService) GetBalances ¶
func (svc *LNDService) GetBalances(ctx context.Context) (*lnclient.BalancesResponse, error)
func (*LNDService) GetLogOutput ¶
func (*LNDService) GetNetworkGraph ¶
func (svc *LNDService) GetNetworkGraph(ctx context.Context, nodeIds []string) (lnclient.NetworkGraphResponse, error)
func (*LNDService) GetNewOnchainAddress ¶
func (svc *LNDService) GetNewOnchainAddress(ctx context.Context) (string, error)
func (*LNDService) GetNodeConnectionInfo ¶
func (svc *LNDService) GetNodeConnectionInfo(ctx context.Context) (nodeConnectionInfo *lnclient.NodeConnectionInfo, err error)
func (*LNDService) GetNodeStatus ¶
func (svc *LNDService) GetNodeStatus(ctx context.Context) (nodeStatus *lnclient.NodeStatus, err error)
func (*LNDService) GetOnchainBalance ¶
func (svc *LNDService) GetOnchainBalance(ctx context.Context) (*lnclient.OnchainBalanceResponse, error)
func (*LNDService) GetPubkey ¶ added in v1.2.0
func (svc *LNDService) GetPubkey() string
func (*LNDService) GetStorageDir ¶
func (svc *LNDService) GetStorageDir() (string, error)
func (*LNDService) GetSupportedNIP47Methods ¶
func (svc *LNDService) GetSupportedNIP47Methods() []string
func (*LNDService) GetSupportedNIP47NotificationTypes ¶
func (svc *LNDService) GetSupportedNIP47NotificationTypes() []string
func (*LNDService) ListChannels ¶
func (*LNDService) ListPeers ¶
func (svc *LNDService) ListPeers(ctx context.Context) ([]lnclient.PeerDetails, error)
func (*LNDService) ListTransactions ¶
func (svc *LNDService) ListTransactions(ctx context.Context, from, until, limit, offset uint64, unpaid bool, invoiceType string) (transactions []lnclient.Transaction, err error)
FIXME: this always returns limit * 2 transactions and offset is not used correctly
func (*LNDService) LookupInvoice ¶
func (svc *LNDService) LookupInvoice(ctx context.Context, paymentHash string) (transaction *lnclient.Transaction, err error)
func (*LNDService) MakeInvoice ¶
func (svc *LNDService) MakeInvoice(ctx context.Context, amount int64, description string, descriptionHash string, expiry int64) (transaction *lnclient.Transaction, err error)
func (*LNDService) OpenChannel ¶
func (svc *LNDService) OpenChannel(ctx context.Context, openChannelRequest *lnclient.OpenChannelRequest) (*lnclient.OpenChannelResponse, error)
func (*LNDService) RedeemOnchainFunds ¶
func (*LNDService) ResetRouter ¶
func (svc *LNDService) ResetRouter(key string) error
func (*LNDService) SendKeysend ¶
func (*LNDService) SendPaymentProbes ¶
func (svc *LNDService) SendPaymentProbes(ctx context.Context, invoice string) error
func (*LNDService) SendPaymentSync ¶
func (svc *LNDService) SendPaymentSync(ctx context.Context, payReq string) (*lnclient.PayInvoiceResponse, error)
func (*LNDService) SendSpontaneousPaymentProbes ¶
func (*LNDService) Shutdown ¶
func (svc *LNDService) Shutdown() error
func (*LNDService) SignMessage ¶
func (*LNDService) UpdateChannel ¶
func (svc *LNDService) UpdateChannel(ctx context.Context, updateChannelRequest *lnclient.UpdateChannelRequest) error
func (*LNDService) UpdateLastWalletSyncRequest ¶
func (svc *LNDService) UpdateLastWalletSyncRequest()
Click to show internal directories.
Click to hide internal directories.