config

package
v0.0.0-...-2f116a2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 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 {
	CONFIG_PATH string

	TickerInterval time.Duration

	ECDSA_KEY_2 string
	ECDSA_KEY_1 string

	P2P_PORT int

	PORT_2                    int
	PORT_1                    int
	LISTEN_NETWORK_2          string
	LISTEN_NETWORK_1          string
	ORACLE_CONTRACT_ADDRESS_2 string
	ORACLE_CONTRACT_ADDRESS_1 string
	TOKENPOOL_ADDRESS_2       string
	TOKENPOOL_ADDRESS_1       string
	BRIDGE_ADDRESS_2          string
	BRIDGE_ADDRESS_1          string
	NETWORK_RPC_2             string
	NETWORK_RPC_1             string
	KEY_FILE                  string
}
var Config AppConfig

Config is global object that holds all application level variables.

func LoadConfigAndArgs

func LoadConfigAndArgs() (cfg *AppConfig, err error)

func NewConfig

func NewConfig() *AppConfig

Jump to

Keyboard shortcuts

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