Documentation ¶
Index ¶
- Constants
- Variables
- func AutoloopLabel(swapType swap.Type) string
- func EasyAutoloopLabel(swapType swap.Type) string
- func LoopInHtlcLabel(swapHash string) string
- func LoopInSweepTimeout(swapHash string) string
- func LoopOutBatchSweepSuccess(batchID int32) string
- func LoopOutSweepSuccess(swapHash string) string
- func Validate(label string) error
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 AutoloopLabel ¶
AutoloopLabel returns a label with the reserved prefix that identifies automatically dispatched swaps depending on the type of swap being executed.
func EasyAutoloopLabel ¶
EasyAutoloopLabel returns a label with the reserved prefix that identifies automatically dispatched swaps depending on the type of swap being executed.
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 LoopOutBatchSweepSuccess ¶
LoopOutBatchSweepSuccess returns the label used for loop out sweep batcher.
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.