Documentation ¶
Index ¶
Constants ¶
View Source
const ( RunEnvDev string = "dev" RunEnvProd string = "prod" Beans string = "mysql,redis,mongo" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { AppName string `json:"app_name"` AppVersion string `json:"app_version"` Conf string Debug bool RunEnv string Beans string Mysql MysqlConfig Redis RedisConfig Mq MqConfig Mongodb MongodbConfig Log LogConfig WorkNum int `json:"work_num"` UploadImageHost string `json:"upload_image_host"` DownloadImageProxy string `json:"download_image_proxy"` // contains filtered or unexported fields }
程序配置
func NewConfig ¶
func NewConfig(opt *FlagOption) *Config
type MongodbConfig ¶
type MysqlConfig ¶
type RedisConfig ¶
Click to show internal directories.
Click to hide internal directories.