go-common/app/infra/canal/model/model.go

20 lines
410 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package model
// Data msg will be push to databus
type Data struct {
Action string `json:"action"`
Table string `json:"table"`
// kafka key
Key string `json:"-"`
Old map[string]interface{} `json:"old,omitempty"`
New map[string]interface{} `json:"new,omitempty"`
}
// TiDBInfo tidb db model
type TiDBInfo struct {
Name string
ClusterID string
Offset int64
CommitTS int64
}