1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- package main
- type GlobalConf struct {
- MongoB MgoConf
- Cron CronConf
- MongoC MgoConf
- Log Log
- Email EmailConf
- }
- type MgoConf struct {
- Host string
- DB string
- Coll string // 查询表
- Username string
- Password string
- Size int
- Direct bool
- }
- // CronConf 定时任务
- type CronConf struct {
- Spec string
- Start int
- End int
- QualityRate string
- CollectionRate string
- Week bool
- }
- type EsConf struct {
- URL string
- Username string
- Password string
- Index string
- }
- type Log struct {
- LogPath string
- MaxSize int
- Compress bool
- MaxAge int
- MaxBackups int
- LogLevel string
- Format string
- }
- type EmailConf struct {
- Api string
- To string
- }
|