event

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionInsert = "insert"
	ActionUpdate = "update"
	ActionDelete = "delete"
)

Event actions

Variables

View Source
var (
	// ActionsMap is map of all supported actions
	ActionsMap = map[string]bool{
		ActionInsert: true,
		ActionUpdate: true,
		ActionDelete: true,
	}
)

Functions

This section is empty.

Types

type Event

type Event struct {
	Host           string
	Database       string
	Table          string
	Action         string
	WALEndPosition uint64
	Timestamp      time.Time
	UUID           string

	Columns map[string]interface{}

	Ack func()
}

Event represents a database event

Jump to

Keyboard shortcuts

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