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 ¶
func ConfigPath() []string
func ErrorExpire ¶
func ErrorLevel ¶
func ErrorPeriod ¶
func ErrorPeriod() string
func ExtenderMarkAddr ¶
func ExtenderMarkAddr() string
func ExtendersDir ¶
func ExtendersDir() string
func FormatPath ¶
func GetDefault ¶
func Home ¶
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 ¶
func PidFileDir() string
func SetProcessName ¶
func SetProcessName(s string)
func SocketAddr ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.