Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ENV_PRO production environment ENV_PRO = "production" // ENV_DEV dev environment ENV_DEV = "dev" // ENV_TEST test environment ENV_TEST = "test" )
View Source
const ( // CONSOLE_LISTEN default value of console listen ip CONSOLE_LISTEN = "0.0.0.0" // CONSOLE_PORT default value of console listen port CONSOLE_PORT = "9999" )
View Source
const (
// APP application name
APP = "binlogo"
)
View Source
const VERSITON = "1.0.14"
VERSITON version of binlogo
Variables ¶
View Source
var NodeIP net.IP
NodeIP current node's ip
View Source
var NodeName string
NodeName current node's name
Functions ¶
func InitConfigs ¶
func InitConfigs()
InitConfigs sets some default values to viper from system environment
func InitViperFromFile ¶
func InitViperFromFile(file string)
InitViperFromFile read config file and write to viper
Types ¶
Click to show internal directories.
Click to hide internal directories.