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
}

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
}
