Documentation ¶
Index ¶
- Constants
- func AppName() string
- func ConfigPath() string
- func DataDir() string
- func EnvName(name string) string
- func Envs() []string
- func ErrorExpire() time.Duration
- func ErrorLevel() log.Level
- func ErrorName() string
- func ErrorPeriod() string
- func ExtenderMarkAddr() string
- func ExtendersDir() string
- func GenEnv(name, value string) string
- func GetArg(cfg *Config, name string) (string, bool)
- func GetConfig() map[string]string
- func GetDefault(name string, d string) string
- func GetDefaultArg(cfg *Config, name string, value string) string
- func GetEnv(name string) (string, bool)
- func Home() string
- func IsDebug() bool
- func LogDir() string
- func PidFileDir() string
- func SetEnv(name string, value string)
- func SocketAddr(name string, pid int) 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 Port = "PORT"
View Source
const Protocol = "PROTOCOL"
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶ added in v0.3.0
func ConfigPath() string
func ErrorExpire ¶ added in v0.4.0
func ErrorLevel ¶ added in v0.4.0
func ErrorPeriod ¶ added in v0.4.0
func ErrorPeriod() string
func ExtenderMarkAddr ¶ added in v0.3.0
func ExtenderMarkAddr() string
func ExtendersDir ¶ added in v0.3.0
func ExtendersDir() string
func GetDefault ¶
func Home ¶ added in v0.3.0
func Home() string
Home returns the home directory for the executing user.
This uses an OS-specific method for discovering the home directory. An error is returned if a home directory cannot be detected.
func PidFileDir ¶ added in v0.3.0
func PidFileDir() string
func SocketAddr ¶ added in v0.3.0
Types ¶
Click to show internal directories.
Click to hide internal directories.