model.go 410 B

12345678910111213141516171819
  1. package model
  2. // Data msg will be push to databus
  3. type Data struct {
  4. Action string `json:"action"`
  5. Table string `json:"table"`
  6. // kafka key
  7. Key string `json:"-"`
  8. Old map[string]interface{} `json:"old,omitempty"`
  9. New map[string]interface{} `json:"new,omitempty"`
  10. }
  11. // TiDBInfo tidb db model
  12. type TiDBInfo struct {
  13. Name string
  14. ClusterID string
  15. Offset int64
  16. CommitTS int64
  17. }