Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProdEnv = "production" // 线上环境 BetaEnv = "beta" // beta环境 DevEnv = "develop" // 开发环境 LocalEnv = "local" // 本地环境 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { ServiceName string `toml:"ServiceName"` Env string `toml:"Env"` Debug bool `toml:"Debug"` PrometheusCollectEnable bool `toml:"PrometheusCollectEnable"` SkyWalkingOapServer string `toml:"SkyWalkingOapServer"` Log config.LogConfig `toml:"Log"` Redis config.RedisConfig `toml:"Redis"` Mns config.MnsConfig `toml:"AliMns"` Db config.DbConfig `toml:"Db"` Api config.ApiConfig `toml:"Api"` }
------------------------配置文件解析
Click to show internal directories.
Click to hide internal directories.