Documentation ¶
Overview ¶
Package model defines data structure that is shared across different categories of plugins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumerMessage ¶
type ConsumerMessage struct {
*sarama.ConsumerMessage
}
ConsumerMessage is a kafka consumer messsage that is also a payloader.
func (ConsumerMessage) Encode ¶
func (m ConsumerMessage) Encode() ([]byte, error)
func (ConsumerMessage) Length ¶
func (m ConsumerMessage) Length() int
type RowsEvent ¶
type RowsEvent struct { Log string `json:"log"` Position uint32 `json:"pos"` Schema string `json:"db"` Table string `json:"tbl"` Action string `json:"dml"` Timestamp uint32 `json:"ts"` // timestamp of binlog from master DbusTimestamp int64 `json:"dt"` // timestamp of dbus receiving the binlog Columns []string `json:"cols"` // column names // binlog has three update event version, v0, v1 and v2. // for v1 and v2, the rows number must be even. // Two rows for one event, format is [before update row, after update row] // for update v0, only one row for a event, and we don't support this version. Rows [][]interface{} `json:"rows"` // contains filtered or unexported fields }
RowsEvent is a structured mysql binlog rows event. It implements engine.Payloader interface and can be transferred between plugins. It also implements kafka message value interface and can be produced to kafka.
Click to show internal directories.
Click to hide internal directories.