Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvConfPath ¶
func GetEnvConfPath() string
GetEnvConfPath returns toml file path from environment variable `$GO_GOOGLE_HOME_CONF`
Types ¶
type Device ¶
type Device struct { Address string `toml:"address"` Lang string `toml:"lang"` Timeout string `toml:"timeout" validate:"required"` }
Device is device property
type Logger ¶
type Logger struct { Service string `toml:"service" validate:"required"` Env string `toml:"env" validate:"oneof=dev prod custom"` Level string `toml:"level" validate:"required"` IsStackTrace bool `toml:"is_stacktrace"` }
Logger is zap logger property
Click to show internal directories.
Click to hide internal directories.