config

package
v0.0.0-...-d193908 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(configPaths ...string) error

LoadConfig loads config from files

func ReadConfig

func ReadConfig() error

Types

type AppConfig

type AppConfig struct {
	// Example Variable
	PORT                    int
	LISTEN_NETWORK          string
	POOL_ADDRESS            string
	ORACLE_CONTRACT_ADDRESS string
	TOKENPOOL_ADDRESS       string
	BRIDGE_ADDRESS          string
	CHAIN_1_URL             string
	CHAIN_2_URL             string
	INFURA_URL              string
	TickerInterval          time.Duration
}
var Config AppConfig

Config is global object that holds all application level variables.

func LoadConfigAndArgs

func LoadConfigAndArgs() (cfg *AppConfig)

func NewConfig

func NewConfig() *AppConfig

Jump to

Keyboard shortcuts

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