config

package
v0.1.3-rc.4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NeutrinoDUrlKey is the key for the neutrino url
	NeutrinoDUrlKey = "NEUTRINOD_URL"
	// ExplorerUrlKey is the URL of the Liquid network
	ExplorerUrlKey = "EXPLORER_URL"
	//PeerUrlKey is the URL of the peer node
	PeerUrlKey = "PEER_URL"
	// NetworkKey is the network to use. Either liquid, testnet or regtest
	NetworkKey = "NETWORK"
	// LogLevelKey are the different logging levels. For reference on the values https://godoc.org/github.com/sirupsen/logrus#Level
	LogLevelKey = "LOG_LEVEL"
	// DbUserKey is user used to connect to db
	DbUserKey = "DB_USER"
	// DbPassKey is password used to connect to db
	DbPassKey = "DB_PASS"
	// DbHostKey is host where db is installed
	DbHostKey = "DB_HOST"
	// DbPortKey is port on which db is listening
	DbPortKey = "DB_PORT"
	// DbNameKey is name of database
	DbNameKey = "DB_NAME"
	// DbMigrationPath is the path to migration files
	DbMigrationPath = "DB_MIGRATION_PATH"
)

Variables

This section is empty.

Functions

func GetBool

func GetBool(key string) bool

func GetDuration

func GetDuration(key string) time.Duration

func GetFloat

func GetFloat(key string) float64

func GetInt

func GetInt(key string) int

func GetString

func GetString(key string) string

func GetStringSlice

func GetStringSlice(key string) []string

func LoadConfig

func LoadConfig() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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