12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- package main
- type GlobalConf struct {
- MongoB MgoConf
- Cron CronConf
- MongoP 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
- Spec2 string
- Start int
- End int
- Delete int
- Columns []string
- HotNum int
- HotDay int
- }
- 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
- }
|