Documentation ¶
Index ¶
- func AppName() string
- func ConfigPath() []string
- func DataDir() string
- func ErrorExpire() time.Duration
- func ErrorLevel() log.Level
- func ErrorName() string
- func ErrorPeriod() string
- func ExtenderMarkAddr() string
- func ExtendersDir() string
- func FormatPath(path string) 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 Process() string
- func SetEnv(name string, value string)
- func SetProcessName(s string)
- func SocketAddr(name string, pid int) string
- type Config
Constants ¶
This section is empty.
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 FormatPath ¶ added in v0.8.0
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 SetProcessName ¶ added in v0.8.0
func SetProcessName(s string)
func SocketAddr ¶ added in v0.3.0
Types ¶
Click to show internal directories.
Click to hide internal directories.