Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { // Symbol of the currency Currency string // Address of the Ethereum token TokenAddress string // Capacity of the channel or amount of token that should be sent Amount float64 // Amount that should be pushed to the other side in case of a channel creation PushAmount float64 }
This struct has a dualistic nature:
- Lightning channel creations "Currency", "Amount" and "PushAmount" need to be set
Ethereum token faucet "Currency", "TokenAddress", "Amount" need to be set
If the "TokenAddress" is set or the "Currency" equals "ETH" no channels will be created for that currency but the faucet will send tokens on request
type ChannelManager ¶
type ChannelManager struct { Interval int `long:"manager.interval" default:"20" description:"Interval in seconds at which new channels should be opened"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.