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 MongoAddr string `mapstructure:"mongo-addr"` AccessSecret string `mapstructure:"access-secret"` RefreshSecret string `mapstructure:"refresh-secret"` CookieStoreSecret string `mapstructure:"cookie-store-secret"` AccessTTL int `mapstructure:"access-ttl"` RefreshTTL int `mapstructure:"refresh-ttl"` RefreshTokenRotate bool `mapstructure:"refresh-token-rotate"` StaticType string `mapstructure:"static-type"` StaticWebDir string `mapstructure:"static-web-dir"` }
Mapstructure maps the fields to the program parameter names.
func (*Config) BindConfig ¶
func (c *Config) BindConfig(v *viper.Viper, set ...BindConfigOpts)
func (*Config) LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.