job.go 380 B

123456789101112131415161718192021
  1. package model
  2. import (
  3. "encoding/json"
  4. )
  5. // All const variable used in job
  6. const (
  7. // binlog type
  8. SyncInsert = "insert"
  9. SyncUpdate = "update"
  10. SyncDelete = "delete"
  11. )
  12. // BinlogMsg dm binlog msg
  13. type BinlogMsg struct {
  14. Action string `json:"action"`
  15. Table string `json:"table"`
  16. New json.RawMessage `json:"new"`
  17. Old json.RawMessage `json:"old"`
  18. }