package main type GlobalConf struct { MongoB MgoConf Log Log Env EnvConf ES map[string]EsConf Email EmailConf } type EnvConf struct { FileStart string NomalStart string NextAddr string NextPort string LocalPort string Spec string SwitchSpec string Alias []string SpecType string Send bool } type MgoConf struct { Host string DB string Coll string // 查询表 Username string Password string Size int Direct bool } type Log struct { LogPath string MaxSize int Compress bool MaxAge int MaxBackups int LogLevel string Format string } type EsConf struct { URL string Username string Password string Shares string } type EmailConf struct { Api string To string }