123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- 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"`
- BiService *MysqlStruct `json:"biService"`
- }
- // 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"`
- Type string `json:"type,optional"`
- Index string `json:"index,optional"`
- }
|