go-common/app/job/main/search/model/config_business.go

39 lines
657 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package model
import (
"go-common/library/database/sql"
)
// SQLBusiness single table offset
type SQLBusiness struct {
Business string
AppIds string
AssetDB string
AssetES string
AssetDtb string
}
// Bsn single table offset
type Bsn struct {
Business string
AppInfo []BsnAppInfo
AssetDB map[string]*sql.Config
AssetES []string
//AssetDtb []AssetDtb
}
// BsnAppInfo .
type BsnAppInfo struct {
AppID string `json:"appid"`
IncrWay string `json:"incr_way"`
IncrOpen bool `json:"incr_open"`
RecoverLock bool
}
// AssetDtb .
// type AssetDtb struct {
// dtb map[string]*databus.Config
// size int
// sleep int
// }