stdout

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Writer)

func WithCheckpoint

func WithCheckpoint(c checkpointer.Checkpoint) Option

func WithLogger

func WithLogger(l loglib.Logger) Option

func WithWriter

func WithWriter(out io.Writer) Option

WithWriter overrides the destination io.Writer. Primarily intended for tests.

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer is a processor that serialises WAL events as NDJSON to an io.Writer (defaulting to os.Stdout). It is intended for debugging and quick validation of a pgstream pipeline without needing a real target.

func NewWriter

func NewWriter(opts ...Option) *Writer

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) Name

func (w *Writer) Name() string

func (*Writer) ProcessWALEvent

func (w *Writer) ProcessWALEvent(ctx context.Context, walEvent *wal.Event) (retErr error)

Jump to

Keyboard shortcuts

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