labels

package
v0.3.0-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package labels contains labels used to label transactions broadcast by lnd. These labels are used across packages, so they are declared in a separate package to avoid dependency issues.

Index

Constants

View Source
const External = "external"

External labels a transaction as user initiated via the api. This label is only used when a custom user provided label is not given.

View Source
const TxLabelLimit = 500

TxLabelLimit is the length limit we impose on transaction labels.

Variables

This section is empty.

Functions

func ValidateAPI

func ValidateAPI(label string) (string, error)

ValidateAPI returns the generic api label if the label provided is empty. This allows us to label all transactions published by the api, even if no label is provided. If a label is provided, it is validated against the known restrictions.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL