types

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeRecord

type ChangeRecord struct {
	LSN       string                 `json:"lsn"`
	XID       int32                  `json:"xid"`
	Timestamp int64                  `json:"timestamp"`
	Table     string                 `json:"table"`
	Operation string                 `json:"operation"`
	Fields    map[string]interface{} `json:"fields"`
	OldFields map[string]interface{} `json:"old_fields,omitempty"`
}

ChangeRecord represents a single change to a table

type RelayMessage

type RelayMessage struct {
	Value   *ChangeRecord
	Options *RelayMessageOptions
}

RelayMessage encapsulates a ChangeRecord message that is read by relay.Run()

type RelayMessageOptions

type RelayMessageOptions struct {
}

RelayMessageOptions contains any additional options necessary for processing of ChangeRecord messages by the relayer

Jump to

Keyboard shortcuts

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