代码拉取完成,页面将自动刷新
package config
var Amqp *AmqpConfig
var Redis *RedisConfig
var Server *ServerConfig
type SnowflakeConfig struct {
Node uint16 `mapstructure:"node"`
}
type ServerConfig struct {
Debug bool `mapstructure:"debug"`
Host string `mapstructure:"host"`
Secret string `mapstructure:"secret"`
Timezone int `mapstructure:"timezone"`
FileStorage string `mapstructure:"file_storage"`
FileDomain string `mapstructure:"file_domain"`
DefaultRouterText string `mapstructure:"default_router_text"`
}
type RedisConfig struct {
DB int `mapstructure:"db"`
Host string `mapstructure:"host"`
Password string `mapstructure:"password"`
Prefix string `mapstructure:"prefix"`
}
type AmqpConfig struct {
Host string `mapstructure:"host"`
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
Prefix string `mapstructure:"prefix"`
}
type MySqlConfig struct {
Host string `mapstructure:"host"`
Config string `mapstructure:"config"`
DbName string `mapstructure:"dbname"`
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
MaxIdleConns int `mapstructure:"max_idle_conns"`
MaxOpenConns int `mapstructure:"max_open_conns"`
LogMode bool `mapstructure:"log_mode"`
LogZap string `mapstructure:"log_zap"`
}
type MySqlConfigs map[string]MySqlConfig
type WeiXinMcpConfig struct {
AppId string `mapstructure:"appid"`
Secret string `mapstructure:"secret"`
Token string `mapstructure:"token"`
}
type CosConfig struct {
AppId string `mapstructure:"appid"`
Bucket string `mapstructure:"bucket"`
Domain string `mapstructure:"domain"`
Region string `mapstructure:"region"`
SecretId string `mapstructure:"secret_id"`
SecretKey string `mapstructure:"secret_key"`
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。