Documentation ¶
Index ¶
- type ChannelsBalanceStats
- type LightningClient
- func (client *LightningClient) GetChannelsBalanceStats() (*ChannelsBalanceStats, error)
- func (client *LightningClient) GetInfoStats() (*NodeStats, error)
- func (client *LightningClient) GetPendingChannelsStats() (*PendingChannelsStats, error)
- func (client *LightningClient) GetStats() (*lnrpc.GetInfoResponse, error)
- func (client *LightningClient) GetWalletStats() (*WalletStats, error)
- type NodeStats
- type PendingChannelsStats
- type WalletStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelsBalanceStats ¶
type ChannelsBalanceStats struct {
TotalBalance int64
}
type LightningClient ¶
type LightningClient struct {
// contains filtered or unexported fields
}
LightningClient allows you to fetch Lightning node metrics from rpc.
func NewLightningClient ¶
func NewLightningClient(rpcclient lnrpc.LightningClient) (*LightningClient, error)
NewLightningClient creates an LightningClient.
func (*LightningClient) GetChannelsBalanceStats ¶
func (client *LightningClient) GetChannelsBalanceStats() (*ChannelsBalanceStats, error)
GetChannelsBalanceStats get pending channels status
func (*LightningClient) GetInfoStats ¶
func (client *LightningClient) GetInfoStats() (*NodeStats, error)
GetInfoStats gets general node info
func (*LightningClient) GetPendingChannelsStats ¶
func (client *LightningClient) GetPendingChannelsStats() (*PendingChannelsStats, error)
GetPendingChannelsStats get pending channels status
func (*LightningClient) GetStats ¶
func (client *LightningClient) GetStats() (*lnrpc.GetInfoResponse, error)
GetStats fetches the node metrics.
func (*LightningClient) GetWalletStats ¶
func (client *LightningClient) GetWalletStats() (*WalletStats, error)
GetWalletStats get wallet balances
type PendingChannelsStats ¶
type WalletStats ¶
Click to show internal directories.
Click to hide internal directories.