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