Documentation ¶
Index ¶
Constants ¶
View Source
const ( ViperTomlConfigurationType = "toml" ViperConfigurationName = "config" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AppName string `mapstructure:"APP_NAME"` WebPort string `mapstructure:"WEB_PORT"` Database ConfigDatabase `mapstructure:"DATABASE"` Cache ConfigCache `mapstructure:"CACHE"` Bcrypt ConfigBcrypt `mapstructure:"BCRYPT"` Jwt ConfigJwt `mapstructure:"JWT"` }
type ConfigBcrypt ¶
type ConfigBcrypt struct {
Round int `mapstructure:"ROUND"`
}
type ConfigCache ¶
type ConfigCache struct { DriverName string `mapstructure:"DRIVER_NAME"` Redis ConfigRedis `mapstructure:"REDIS"` }
type ConfigDatabase ¶
Click to show internal directories.
Click to hide internal directories.