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