123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- 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"`
- Push *MysqlStruct `json:"push,optional"`
- MemberPush *MysqlStruct `json:"memberPush"`
- EntnichePush *MysqlStruct `json:"entnichePush"`
- }
- //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"`
- Version string `json:"version"`
- UserName string `json:"userName"`
- Password string `json:"password"`
- }
- const (
- ListModeCollection = "list_mode" // 搜索/订阅 列表模式 集合
- )
|