package entity type Mongo struct { Main *MongoStruct `json:"main,optional"` MgoLog *MongoStruct `json:"mgoLog,optional"` Ent *MongoStruct `json:"ent,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,optional"` BaseService *MysqlStruct `json:"baseService,omitempty"` } //mysql type MysqlStruct struct { DbName string `json:"dbName,optional"` Address string `json:"address,optional"` UserName string `json:"userName,optional"` Password string `json:"password,optional"` MaxOpenConns int `json:"maxOpenConns,optional"` MaxIdleConns int `json:"maxIdleConns,optional"` } //redis type RedisStuct struct { Addr []string `json:"addr"` } //es type EsStruct struct { Addr string `json:"addr"` Size int `json:"size"` }