1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- 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
- }
- type EmailConf struct {
- Api string
- To string
- }
|