Documentation ¶
Index ¶
- Constants
- func AppName() string
- func EnvName(name string) string
- func Envs() []string
- func GenEnv(name, value string) string
- func GetArg(cfg *Config, name string) (string, bool)
- func GetDefault(name string, d string) string
- func GetDefaultArg(cfg *Config, name string, value string) string
- func GetEnv(name string) (string, bool)
- func IsDebug() bool
- func SetEnv(name string, value string)
- type Config
Constants ¶
View Source
const BroadcastIP = "BROADCAST_IP"
View Source
const ClusterAddress = "CLUSTER_ADDRESS"
View Source
const IP = "IP"
View Source
const IsJoin = "IS_JOIN"
View Source
const NodeID = "NODE_ID"
View Source
const NodeKey = "NODE_KEY"
View Source
const PluginPath = "PLUGINS_DIR"
View Source
const Port = "PORT"
View Source
const Protocol = "PROTOCOL"
Variables ¶
This section is empty.
Functions ¶
func GetDefault ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.