config

package
v0.1.2-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DatadirKey is the key to customize the ocean datadir.
	DatadirKey = "DATADIR"
	// DatabaseTypeKey is the key to customize the type of database to use.
	DatabaseTypeKey = "DATABASE_TYPE"
	// BlockchainScannerTypeKey is the key to customize the type of blockchain
	// scanner to use.
	BlockchainScannerTypeKey = "BLOCKCHAIN_SCANNER_TYPE"
	// PortKey is the key to customize the port where the wallet will be listening to.
	PortKey = "PORT"
	// ProfilerPortKey is the key to customize the port where the profiler will
	// be listening to.
	ProfilerPortKey = "PROFILER_PORT"
	// NetworkKey is the key to customize the Liquid network.
	NetworkKey = "NETWORK"
	// NativeAssetKey is the key to customize the native LBTC asset of the Liquid
	// network. Should be used only for testing purposes.
	NativeAssetKey = "NATIVE_ASSET"
	// LogLevelKey is the key to customize the log level to catch more specific
	// or more high level logs.
	LogLevelKey = "LOG_LEVEL"
	// TLSExtraIPKey is the key to bind one or more public IPs to the TLS key pair.
	// Should be used only when enabling TLS.
	TLSExtraIPKey = "TLS_EXTRA_IP"
	// TLSExtraDomainKey is the key to bind one or more public dns domains to the
	// TLS key pair. Should be used only when enabling TLS.
	TLSExtraDomainKey = "TLS_EXTRA_DOMAIN"
	// NoTLSKey is the key to disable TLS encryption.
	NoTLSKey = "NO_TLS"
	// NoProfilerKey is the key to disable Prometheus profiling.
	NoProfilerKey = "NO_PROFILER"
	// StatsIntervalKey is the key to customize the interval for the profiled to
	// gather profiling stats.
	StatsIntervalKey = "STATS_INTERVAL"
	// NodePeersKey is the key to customize the list of peers the embedded SPV
	// node will connect to when started
	NodePeersKey = "NODE_PEERS"
	// ElementsNodeRpcAddrKey is the key to set the rpc address of the node to connect
	// to when using elements-node-based blockchain scanner.
	ElementsNodeRpcAddrKey = "NODE_RPC_ADDR"
	// UtxoExpiryDurationKey is the key to customize the waiting time for one or
	// more previously locked utxos to be unlocked if not yet spent.
	UtxoExpiryDurationKey = "UTXO_EXPIRY_DURATION_IN_SECONDS"
	// RootPathKey is the key to use a custom root path for the wallet,
	// instead of the default m/84'/[1776|1]' (depending on network).
	RootPathKey = "ROOT_PATH"
	// EsploraUrlKey is the key for the esplora block esplorer consumed by the
	// neutrino blockchain scanner
	EsploraUrlKey = "ESPLORA_URL"

	// DbLocation is the folder inside the datadir containing db files.
	DbLocation = "db"
	// TLSLocation is the folder inside the datadir containing TLS key and
	// certificate.
	TLSLocation = "tls"
	// ScannerLocation is the folder inside the datadir containing blockchain
	// scanner files.
	ScannerLocation = "blockchain"
	// ProfilerLocation is the folder inside the datadir containing profiler
	// stats files.
	ProfilerLocation = "stats"
)

Variables

View Source
var (
	SupportedDbs = supportedType{
		"badger":   {},
		"inmemory": {},
	}
	SupportedBcScanners = supportedType{
		"neutrino": {},
		"elements": {},
	}
)

Functions

func GetBool

func GetBool(key string) bool

func GetDatadir

func GetDatadir() string

func GetInt

func GetInt(key string) int

func GetNetwork

func GetNetwork() *network.Network

func GetRootPath

func GetRootPath() string

func GetString

func GetString(key string) string

func GetStringSlice

func GetStringSlice(key string) []string

func IsSet

func IsSet(key string) bool

func Set

func Set(key string, val interface{})

func Unset

func Unset(key string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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