123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- package entity
- import (
- elastic "app.yhyue.com/moapp/jybase/es"
- "app.yhyue.com/moapp/jybase/mysql"
- )
- var (
- Mysql *mysql.Mysql
- ESV7 elastic.Es // 知识库使用新
- ESV7Index string
- ESV7Type string
- )
- // MysqlMainStruct msyql
- type MysqlMainStruct 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"`
- }
- // Mgo mgo
- type Mgo struct {
- DbName string `json:"dbName"`
- Address string `json:"address"`
- Size int `json:"size"`
- ReplSet string `json:"replSet"`
- }
- // RedisStruct redis
- type RedisStruct struct {
- Addr string `json:"addr"`
- Modules string `json:"modules"`
- }
- // EsStruct es
- type EsStruct struct {
- Addr string `json:"addr"`
- Size int `json:"size"`
- Index string `json:"index"`
- Type string `json:"type"`
- }
|