Documentation ¶
Index ¶
Constants ¶
View Source
const ( MsgDML MsgType = "dml" MsgDDL MsgType = "ddl" MsgCtl MsgType = "ctl" // control operate InsertAction ActionType = "insert" UpdateAction ActionType = "update" DeleteAction ActionType = "delete" ReplaceAction ActionType = "replace" MysqlPlugin PluginName = "Mysql" MongoPlugin PluginName = "Mongo" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶ added in v0.3.0
type ActionType string
type DMLMsg ¶ added in v0.3.0
type DMLMsg struct { Action ActionType Data map[string]interface{} Old map[string]interface{} }
type Msg ¶
type Msg struct { Database string Table string Type MsgType DmlMsg *DMLMsg DdlMsg *DDLMsg PluginName PluginName ResumeToken *WatchId `bson:"_id"` Timestamp time.Time InputContext interface{} AfterCommitCallback MsgCallbackFunc }
type MsgCallbackFunc ¶ added in v0.3.0
type PluginName ¶ added in v0.3.2
type PluginName string
Click to show internal directories.
Click to hide internal directories.