Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindConfigOpts ¶
type Config ¶
type Config struct { Port int Debug bool RedisAddr string `mapstructure:"redis-addr"` AccessSecret string `mapstructure:"access-secret"` RefreshSecret string `mapstructure:"refresh-secret"` }
func (*Config) BindConfig ¶
func (c *Config) BindConfig(v *viper.Viper, set ...BindConfigOpts)
Config load order: is: default values > config file > environment variables > CLI arguments For details on load precedence see https://github.com/spf13/viper#why-viper
func (*Config) LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.