configs

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MIT Imports: 6 Imported by: 0

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

type Env

type Env string

Env use for ENV

var ENV Env

ENV global environment

Jump to

Keyboard shortcuts

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