Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseConfig ¶
type BaseConfig struct { LogLevel string `mapstructure:"logLevel" envconfig:"LOG_LEVEL" default:"info"` IsDev bool `mapstructure:"isDev" envconfig:"IS_DEV" default:"false"` ListenAddr string `mapstructure:"listenAddr" envconfig:"LISTEN_ADDR" default:"127.0.0.1"` ListenPort int `mapstructure:"listenPort" envconfig:"LISTEN_PORT" default:"8080"` ServerMode server.ServerMode `mapstructure:"serverMode" default:"production"` }
BaseConfig can be used to import the base config parameters in the applications config struct. Please use with tag `mapstructure:",squash"`.
Click to show internal directories.
Click to hide internal directories.