Documentation
¶
Overview ¶
Lightning Network primitives.
Index ¶
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.
Click to show internal directories.
Click to hide internal directories.