package entity

type Mongo struct {
	Main    *MongoStruct `json:"main,optional"`
	MgoLog  *MongoStruct `json:"mgoLog,optional"`
	Bidding *MongoStruct `json:"bidding,optional"`
}

//
type MongoStruct struct {
	Address        string `json:"address"`
	Size           int    `json:"size"`
	DbName         string `json:"dbName"`
	UserName       string `json:"userName,optional"`
	Password       string `json:"password,optional"`
	Collection     string `json:"collection,optional"`
	CollectionBack string `json:"collectionBack,optional"`
	MaxOpenConns   int    `json:"maxOpenConns,optional"`
	MaxIdleConns   int    `json:"maxIdleConns,optional"`
}

//
type Mysql struct {
	Main *MysqlStruct `json:"main"`
	Base *MysqlStruct `json:"base"`
}

//mysql
type MysqlStruct struct {
	DbName       string `json:"dbName"`
	Address      string `json:"address"`
	UserName     string `json:"userName"`
	Password     string `json:"password"`
	MaxOpenConns int    `json:"maxOpenConns"`
	MaxIdleConns int    `json:"maxIdleConns"`
}

//redis
type RedisStuct struct {
	Addr []string `json:"addr"`
}

//es
type EsStruct struct {
	Addr     string `json:"addr"`
	Size     int    `json:"size"`
	Version  string `json:"version"`
	UserName string `json:"userName"`
	Password string `json:"password"`
}
