cdc_event

package
v0.0.0-...-db03bc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CDCEvent

type CDCEvent struct {
	Schema string                   `json:"schema"`
	Table  string                   `json:"table"`
	Action string                   `json:"action"`
	Before []map[string]interface{} `json:"before"`
	After  []map[string]interface{} `json:"after"`
	Meta   CDCEventMeta             `json:"meta"`
	Kafka  KafkaMeta                `json:"kafka"`
	// contains filtered or unexported fields
}

func NewCDCEvent

func NewCDCEvent(rawEvent *canal.RowsEvent, gtid *mysql.GTIDSet) CDCEvent

func (*CDCEvent) GetGTID

func (e *CDCEvent) GetGTID() string

func (*CDCEvent) String

func (e *CDCEvent) String() string

func (*CDCEvent) ToJson

func (e *CDCEvent) ToJson() (string, error)

type CDCEventMeta

type CDCEventMeta struct {
	Timestamp int64  `json:"timestamp"`
	Pipeline  string `json:"pipeline"`
}

type KafkaMeta

type KafkaMeta struct {
	Topic string `json:"topic"`
	Key   string `json:"key"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL