config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TraderListeningPortKey ...
	TraderListeningPortKey = "TRADER_LISTENING_PORT"
	// OperatorListeningPortKey ...
	OperatorListeningPortKey = "OPERATOR_LISTENING_PORT"
	// ExplorerEndpointKey ...
	ExplorerEndpointKey = "EXPLORER_ENDPOINT"
	// DataDirPathKey ...
	DataDirPathKey = "DATA_DIR_PATH"
	// LogLevelKey ...
	LogLevelKey = "LOG_LEVEL"
	// DefaultFeeKey ...
	DefaultFeeKey = "DEFAULT_FEE"
	// NetworkKey ...
	NetworkKey = "NETWORK"
	// BaseAssetKey ...
	BaseAssetKey = "BASE_ASSET"
	// CrawlIntervalKey ...
	CrawlIntervalKey = "CRAWL_INTERVAL"
	// FeeAccountBalanceThresholdKey ...
	FeeAccountBalanceThresholdKey = "FEE_ACCOUNT_BALANCE_THRESHOLD"
	// TradeExpiryTimeKey ...
	TradeExpiryTimeKey = "TRADE_EXPIRY_TIME"
	// PriceSlippageKey ...
	PriceSlippageKey = "PRICE_SLIPPAGE"
	// MnemonicKey ...
	MnemonicKey = "MNEMONIC"
	//UnspentTtlKey ...
	UnspentTtlKey = "UNSPENT_TTL"
)

Variables

This section is empty.

Functions

func GetBool

func GetBool(key string) bool

GetBool ...

func GetDuration

func GetDuration(key string) time.Duration

GetDuration ...

func GetFloat

func GetFloat(key string) float64

GetFloat ...

func GetInt

func GetInt(key string) int

GetInt ...

func GetMnemonic

func GetMnemonic() []string

GetMnemonic returns the current set mnemonic

func GetNetwork

func GetNetwork() *network.Network

GetNetwork ...

func GetString

func GetString(key string) string

GetString ...

func Set

func Set(key string, value interface{})

Set a value for the given key

Types

This section is empty.

Jump to

Keyboard shortcuts

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