package main

type GlobalConf struct {
	Mongob      MgoConf
	Cron        CronConf
	Mongop      MgoConf
	Mysql       MysqlConf
	Log         Log
	Mongospider MgoConf
	Email       EmailConf
}

type MgoConf struct {
	Host     string
	DB       string
	Coll     string // 查询表
	Username string
	Password string
	Size     int
}

//CronConf 定时任务
type CronConf struct {
	Spec   string
	Start  int
	End    int
	Delete int
}

type EspConf struct {
	URL      string
	Username string
	Password string
	Index    string
}

type MysqlConf struct {
	Address  string
	Dbname   string
	Username string
	Password string
	Table    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
}
