Documentation
¶
Index ¶
Constants ¶
View Source
const ( ConfigPath = "deploy/config/" ConfigName = "setting" ConfigType = "yml" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Version string `mapstructure:"version"`
Mode string `mapstructure:"mode"`
Application AppConfig `mapstructure:"application"`
Database DBConfig `mapstructure:"database"`
Jwt JWTConfig `mapstructure:"jwt"`
Log LogConfig `mapstructure:"log"`
Author []string `mapstructure:"author"`
}
type DBConfig ¶
type DBConfig struct {
DBDriver string `mapstructure:"driver"`
LoggerLevel int `mapstructure:"level"`
DBUser string `mapstructure:"user"`
DBPassword string `mapstructure:"password"`
DBPort int `mapstructure:"port"`
DBName string `mapstructure:"name"`
DBHost string `mapstructure:"host"`
ParseTime bool `mapstructure:"parse_time"`
}
Click to show internal directories.
Click to hide internal directories.