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" // CLUSTER_NAME default value of cluster name CLUSTER_NAME = "cluster" )
View Source
const (
// APP application name
APP = "binlogo"
)
Variables ¶
View Source
var BuildTime string
View Source
var GoVersion string
View Source
var NodeIP net.IP
NodeIP current node's ip
View Source
var NodeName string
NodeName current node's name
View Source
var Version string
Functions ¶
func InitConfig ¶
Types ¶
type Config ¶
type Config struct { ClusterName string `yaml:"cluster_name"` NodeName string `yaml:"node_name"` Console Console `yaml:"console"` Roles Roles `yaml:"roles"` Monitor Monitor `yaml:"monitor"` Store Store `yaml:"store"` Auth Auth `yaml:"auth"` }
var Default Config
Click to show internal directories.
Click to hide internal directories.