Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MaxLength is the maximum length we allow for labels. MaxLength = 500 // Reserved is used as a prefix to separate labels that are created by // loopd from those created by users. Reserved = "[reserved]" )
Variables ¶
View Source
var ( // ErrLabelTooLong is returned when a label exceeds our length limit. ErrLabelTooLong = errors.New("label exceeds maximum length") // ErrReservedPrefix is returned when a label contains the prefix // which is reserved for internally produced labels. ErrReservedPrefix = errors.New("label contains reserved prefix") )
Functions ¶
func AutoOutLabel ¶
func AutoOutLabel() string
AutoOutLabel returns a label with the reserved prefix that identifies automatically dispatched loop outs.
func LoopInHtlcLabel ¶
LoopInHtlcLabel returns the label used for loop in swaps to publish an HTLC.
func LoopInSweepTimeout ¶
LoopInSweepTimeout returns the label used for loop in swaps to sweep an HTLC that has timed out.
func LoopOutSweepSuccess ¶
LoopOutSweepSuccess returns the label used for loop out swaps to sweep the HTLC in the success case.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.