Documentation ¶
Overview ¶
Wrap lightning network node implementations.
Index ¶
- type Channel
- type ChannelID
- type ChannelLiquidityLevel
- type Channels
- type Edge
- type FeePPM
- type Forward
- type Graph
- type Info
- type Invoice
- type Lightning
- func (l Lightning) AddInvoice(ctx context.Context, amount Satoshi) (Invoice, error)
- func (l Lightning) DescribeGraph(ctx context.Context) (*Graph, error)
- func (l Lightning) ForwardingHistory(ctx context.Context, since time.Time) ([]Forward, error)
- func (l Lightning) GetChannel(ctx context.Context, channelID ChannelID) (Channel, error)
- func (l Lightning) GetInfo(ctx context.Context) (*Info, error)
- func (l Lightning) ListChannels(ctx context.Context) (Channels, error)
- func (l Lightning) SendPayment(ctx context.Context, invoice Invoice, outChannelID ChannelID, ...) (Satoshi, error)
- func (l Lightning) SetFees(ctx context.Context, channelID ChannelID, fee FeePPM) error
- type Node
- type Satoshi
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { Edge ChannelID ChannelID LocalBalance Satoshi RemoteBalance Satoshi RemoteNode Node }
Channel between local and remote node.
func (Channel) LiquidityLevel ¶ added in v0.3.0
func (c Channel) LiquidityLevel() ChannelLiquidityLevel
LiquidityLevel of the channel.
type ChannelLiquidityLevel ¶ added in v0.3.0
type ChannelLiquidityLevel string
ChannelLiquidityLevel coarse-grained bucket based on current liquidity.
const ( LowLiquidity ChannelLiquidityLevel = "low" StandardLiquidity ChannelLiquidityLevel = "standard" HighLiquidity ChannelLiquidityLevel = "high" )
ChannelLiquidityLevels
type Channels ¶
type Channels []Channel
Channels of node.
func (Channels) HighLiquidity ¶
HighLiquidity channels of node.
func (Channels) LowLiquidity ¶
LowLiquidity channels of node.
type Lightning ¶
type Lightning struct {
// contains filtered or unexported fields
}
Lightning client backed by LND node.
func (Lightning) AddInvoice ¶
AddInvoice of amount.
func (Lightning) DescribeGraph ¶
DescribeGraph of the Lightning Network.
func (Lightning) ForwardingHistory ¶ added in v0.2.0
ForwardingHistory of node since the time give, capped at 50,000 events.
func (Lightning) GetChannel ¶
GetChannel with ID.
func (Lightning) ListChannels ¶
ListChannels of local node.
Click to show internal directories.
Click to hide internal directories.