Documentation
¶
Index ¶
- func GetVssNodeIdentifier(keys keys.Keys) (string, error)
- func NewLDKLogger(logLevel logrus.Level, logToFile bool, workDir string) (ldk_node.LogWriter, error)
- func NewLDKService(ctx context.Context, cfg config.Config, eventPublisher events.EventPublisher, ...) (result lnclient.LNClient, err error)
- type LDKEventBroadcaster
- type LDKService
- func (ls *LDKService) CancelHoldInvoice(ctx context.Context, paymentHash string) error
- func (ls *LDKService) CloseChannel(ctx context.Context, closeChannelRequest *lnclient.CloseChannelRequest) (*lnclient.CloseChannelResponse, error)
- func (ls *LDKService) ConnectPeer(ctx context.Context, connectPeerRequest *lnclient.ConnectPeerRequest) error
- func (ls *LDKService) ConsumeEvent(ctx context.Context, event *events.Event, ...)
- func (ls *LDKService) DisconnectPeer(ctx context.Context, peerId string) error
- func (ls *LDKService) ExecuteCustomNodeCommand(ctx context.Context, command *lnclient.CustomNodeCommandRequest) (*lnclient.CustomNodeCommandResponse, error)
- func (ls *LDKService) GetBalances(ctx context.Context, includeInactiveChannels bool) (*lnclient.BalancesResponse, error)
- func (ls *LDKService) GetChainDataSource() (string, string)
- func (ls *LDKService) GetCustomNodeCommandDefinitions() []lnclient.CustomNodeCommandDef
- func (ls *LDKService) GetInfo(ctx context.Context) (info *lnclient.NodeInfo, err error)
- func (ls *LDKService) GetLogOutput(ctx context.Context, maxLen int) ([]byte, error)
- func (ls *LDKService) GetNetworkGraph(ctx context.Context, nodeIds []string) (lnclient.NetworkGraphResponse, error)
- func (ls *LDKService) GetNewOnchainAddress(ctx context.Context) (string, error)
- func (ls *LDKService) GetNodeConnectionInfo(ctx context.Context) (nodeConnectionInfo *lnclient.NodeConnectionInfo, err error)
- func (ls *LDKService) GetNodeStatus(ctx context.Context) (nodeStatus *lnclient.NodeStatus, err error)
- func (ls *LDKService) GetOnchainBalance(ctx context.Context) (*lnclient.OnchainBalanceResponse, error)
- func (ls *LDKService) GetPubkey() string
- func (ls *LDKService) GetStorageDir() (string, error)
- func (ls *LDKService) GetSupportedNIP47Methods() []string
- func (ls *LDKService) GetSupportedNIP47NotificationTypes() []string
- func (ls *LDKService) ListChannels(ctx context.Context) ([]lnclient.Channel, error)
- func (ls *LDKService) ListOnchainTransactions(ctx context.Context) ([]lnclient.OnchainTransaction, error)
- func (ls *LDKService) ListPeers(ctx context.Context) ([]lnclient.PeerDetails, error)
- func (ls *LDKService) LookupInvoice(ctx context.Context, paymentHash string) (transaction *lnclient.Transaction, err error)
- func (ls *LDKService) MakeHoldInvoice(ctx context.Context, amountMsat int64, description string, ...) (*lnclient.Transaction, error)
- func (ls *LDKService) MakeInvoice(ctx context.Context, amountMsat int64, description string, ...) (transaction *lnclient.Transaction, err error)
- func (ls *LDKService) MakeOffer(ctx context.Context, description string) (string, error)
- func (ls *LDKService) OpenChannel(ctx context.Context, openChannelRequest *lnclient.OpenChannelRequest) (*lnclient.OpenChannelResponse, error)
- func (ls *LDKService) PayOfferSync(ctx context.Context, offer string, amount uint64, payerNote string) (*lnclient.PayOfferResponse, error)
- func (ls *LDKService) RedeemOnchainFunds(ctx context.Context, toAddress string, amountSat uint64, feeRate *uint64, ...) (string, error)
- func (ls *LDKService) ResetRouter(key string) error
- func (ls *LDKService) SendKeysend(amountMsat uint64, destination string, custom_records []lnclient.TLVRecord, ...) (*lnclient.PayKeysendResponse, error)
- func (ls *LDKService) SendPaymentSync(invoice string, amountMsat *uint64) (*lnclient.PayInvoiceResponse, error)
- func (ls *LDKService) SettleHoldInvoice(ctx context.Context, preimage string) error
- func (ls *LDKService) Shutdown() error
- func (ls *LDKService) SignMessage(ctx context.Context, message string) (string, error)
- func (ls *LDKService) UpdateChannel(ctx context.Context, updateChannelRequest *lnclient.UpdateChannelRequest) error
- func (ls *LDKService) UpdateLastWalletSyncRequest()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVssNodeIdentifier ¶ added in v1.11.0
func NewLDKLogger ¶ added in v1.17.0
Types ¶
type LDKEventBroadcaster ¶
type LDKEventBroadcaster interface {
Subscribe() chan *ldk_node.Event
CancelSubscription(chan *ldk_node.Event)
}
func NewLDKEventBroadcaster ¶
func NewLDKEventBroadcaster(ctx context.Context, source <-chan *ldk_node.Event) LDKEventBroadcaster
type LDKService ¶
type LDKService struct {
// contains filtered or unexported fields
}
func (*LDKService) CancelHoldInvoice ¶ added in v1.18.0
func (ls *LDKService) CancelHoldInvoice(ctx context.Context, paymentHash string) error
func (*LDKService) CloseChannel ¶
func (ls *LDKService) CloseChannel(ctx context.Context, closeChannelRequest *lnclient.CloseChannelRequest) (*lnclient.CloseChannelResponse, error)
func (*LDKService) ConnectPeer ¶
func (ls *LDKService) ConnectPeer(ctx context.Context, connectPeerRequest *lnclient.ConnectPeerRequest) error
func (*LDKService) ConsumeEvent ¶ added in v1.15.0
func (*LDKService) DisconnectPeer ¶
func (ls *LDKService) DisconnectPeer(ctx context.Context, peerId string) error
func (*LDKService) ExecuteCustomNodeCommand ¶ added in v1.14.0
func (ls *LDKService) ExecuteCustomNodeCommand(ctx context.Context, command *lnclient.CustomNodeCommandRequest) (*lnclient.CustomNodeCommandResponse, error)
func (*LDKService) GetBalances ¶
func (ls *LDKService) GetBalances(ctx context.Context, includeInactiveChannels bool) (*lnclient.BalancesResponse, error)
func (*LDKService) GetChainDataSource ¶ added in v1.22.0
func (ls *LDKService) GetChainDataSource() (string, string)
func (*LDKService) GetCustomNodeCommandDefinitions ¶ added in v1.14.0
func (ls *LDKService) GetCustomNodeCommandDefinitions() []lnclient.CustomNodeCommandDef
func (*LDKService) GetLogOutput ¶
func (*LDKService) GetNetworkGraph ¶
func (ls *LDKService) GetNetworkGraph(ctx context.Context, nodeIds []string) (lnclient.NetworkGraphResponse, error)
func (*LDKService) GetNewOnchainAddress ¶
func (ls *LDKService) GetNewOnchainAddress(ctx context.Context) (string, error)
func (*LDKService) GetNodeConnectionInfo ¶
func (ls *LDKService) GetNodeConnectionInfo(ctx context.Context) (nodeConnectionInfo *lnclient.NodeConnectionInfo, err error)
func (*LDKService) GetNodeStatus ¶
func (ls *LDKService) GetNodeStatus(ctx context.Context) (nodeStatus *lnclient.NodeStatus, err error)
func (*LDKService) GetOnchainBalance ¶
func (ls *LDKService) GetOnchainBalance(ctx context.Context) (*lnclient.OnchainBalanceResponse, error)
func (*LDKService) GetPubkey ¶ added in v1.2.0
func (ls *LDKService) GetPubkey() string
func (*LDKService) GetStorageDir ¶
func (ls *LDKService) GetStorageDir() (string, error)
func (*LDKService) GetSupportedNIP47Methods ¶
func (ls *LDKService) GetSupportedNIP47Methods() []string
func (*LDKService) GetSupportedNIP47NotificationTypes ¶
func (ls *LDKService) GetSupportedNIP47NotificationTypes() []string
func (*LDKService) ListChannels ¶
func (*LDKService) ListOnchainTransactions ¶ added in v1.17.0
func (ls *LDKService) ListOnchainTransactions(ctx context.Context) ([]lnclient.OnchainTransaction, error)
func (*LDKService) ListPeers ¶
func (ls *LDKService) ListPeers(ctx context.Context) ([]lnclient.PeerDetails, error)
func (*LDKService) LookupInvoice ¶
func (ls *LDKService) LookupInvoice(ctx context.Context, paymentHash string) (transaction *lnclient.Transaction, err error)
func (*LDKService) MakeHoldInvoice ¶ added in v1.18.0
func (*LDKService) MakeInvoice ¶
func (*LDKService) OpenChannel ¶
func (ls *LDKService) OpenChannel(ctx context.Context, openChannelRequest *lnclient.OpenChannelRequest) (*lnclient.OpenChannelResponse, error)
func (*LDKService) PayOfferSync ¶ added in v1.18.0
func (ls *LDKService) PayOfferSync(ctx context.Context, offer string, amount uint64, payerNote string) (*lnclient.PayOfferResponse, error)
func (*LDKService) RedeemOnchainFunds ¶
func (*LDKService) ResetRouter ¶
func (ls *LDKService) ResetRouter(key string) error
func (*LDKService) SendKeysend ¶
func (ls *LDKService) SendKeysend(amountMsat uint64, destination string, custom_records []lnclient.TLVRecord, preimage string) (*lnclient.PayKeysendResponse, error)
func (*LDKService) SendPaymentSync ¶
func (ls *LDKService) SendPaymentSync(invoice string, amountMsat *uint64) (*lnclient.PayInvoiceResponse, error)
func (*LDKService) SettleHoldInvoice ¶ added in v1.18.0
func (ls *LDKService) SettleHoldInvoice(ctx context.Context, preimage string) error
func (*LDKService) Shutdown ¶
func (ls *LDKService) Shutdown() error
func (*LDKService) SignMessage ¶
func (*LDKService) UpdateChannel ¶
func (ls *LDKService) UpdateChannel(ctx context.Context, updateChannelRequest *lnclient.UpdateChannelRequest) error
func (*LDKService) UpdateLastWalletSyncRequest ¶
func (ls *LDKService) UpdateLastWalletSyncRequest()
Click to show internal directories.
Click to hide internal directories.