12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- package main
- type GlobalConf struct {
- Mongoqy MgoConf
- Cron CronConf
- Mongop MgoConf
- Mysql MysqlConf
- Log Log
- Mongospider MgoConf
- Email EmailConf
- Clickhouse CkConf
- }
- type MgoConf struct {
- Host string
- DB string
- Coll string // 查询表
- Username string
- Password string
- Size int
- Direct bool
- List string
- Detail string
- }
- // CronConf 定时任务
- type CronConf struct {
- Spec string
- Url string
- Start int
- End int
- Delete int
- }
- type CkConf struct {
- Host string
- Username string
- Password string
- DB string
- }
- type MysqlConf struct {
- Address string
- Dbname string
- Username string
- Password string
- Prefix string //数据表前缀
- Table string
- Stime string
- Etime string
- Test bool
- }
- type Log struct {
- LogPath string
- MaxSize int
- Compress bool
- MaxAge int
- MaxBackups int
- LogLevel string
- Format string
- }
- type EmailConf struct {
- Api string
- To string
- }
|