You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
410 B

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
}