Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TextFormat 文本格式 TextFormat = LogFormat("text") // JSONFormat json格式 JSONFormat = LogFormat("json") )
View Source
const ( // ToFile 保存到文件 ToFile = LogTo("file") // ToStdout 打印到标准输出 ToStdout = LogTo("stdout") )
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFromToml ¶
LoadConfigFromToml 从toml中添加配置文件, 并初始化全局对象
Types ¶
type Config ¶
type Config struct { App *app `toml:"app"` Log *log `toml:"log"` Redis *Redis `toml:"redis"` Mongo *mongodb `toml:"mongodb"` Mcenter *rpc.Config `toml:"mcenter"` }
Config 应用配置
Click to show internal directories.
Click to hide internal directories.