processor

package
v0.0.0-...-eebd556 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrVersionNotFound = errors.New("version column not found")
	ErrIDNotFound      = errors.New("id column not found")
	ErrTableNotFound   = errors.New("table not found")
	ErrColumnNotFound  = errors.New("column not found")
)
View Source
var (
	ErrPanic               = errors.New("panic while processing wal event")
	ErrIncompatibleWalData = errors.New("wal data event is not a schema log entry")
)

Functions

func IsSchemaLogEvent

func IsSchemaLogEvent(d *wal.Data) bool

IsSchemaLogEvent will return true if the wal event data originates from the pgstream schema and the pgstream schema_log table.

func WalDataToLogEntry

func WalDataToLogEntry(d *wal.Data) (*schemalog.LogEntry, error)

WalDataToLogEntry will convert the wal event data on input into the equivalent schemalog entry. It will return an error if the wal event data is not from the schema log table.

Types

type Processor

type Processor interface {
	ProcessWALEvent(ctx context.Context, walEvent *wal.Event) error
	Name() string
}

Processor is a general interface to receive and process a wal event

Jump to

Keyboard shortcuts

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