postgres

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkpointer

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

Checkpointer is a postgres implementation of a wal checkpointer. It syncs the LSN to postgres.

func New

func New(syncer lsnSyncer) *Checkpointer

New returns a postgres checkpointer that syncs the LSN to postgres on demand.

func (*Checkpointer) Close

func (c *Checkpointer) Close() error

func (*Checkpointer) SyncLSN

func (c *Checkpointer) SyncLSN(ctx context.Context, positions []wal.CommitPosition) error

type Config

type Config struct {
	Replication pgreplication.Config
}

Jump to

Keyboard shortcuts

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