instrumentation

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(inner replication.Handler, instrumentation *otel.Instrumentation) (replication.Handler, error)

Types

type Handler

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

func (*Handler) Close

func (h *Handler) Close() error

func (*Handler) GetCurrentLSN added in v0.3.0

func (h *Handler) GetCurrentLSN(ctx context.Context) (replication.LSN, error)

func (*Handler) GetLSNParser

func (h *Handler) GetLSNParser() replication.LSNParser

func (*Handler) GetReplicationLag

func (h *Handler) GetReplicationLag(ctx context.Context) (int64, error)

func (*Handler) ReceiveMessage

func (h *Handler) ReceiveMessage(ctx context.Context) (msg *replication.Message, err error)

func (*Handler) StartReplication

func (h *Handler) StartReplication(ctx context.Context) error

func (*Handler) StartReplicationFromLSN added in v0.3.0

func (h *Handler) StartReplicationFromLSN(ctx context.Context, lsn replication.LSN) error

func (*Handler) SyncLSN

func (h *Handler) SyncLSN(ctx context.Context, lsn replication.LSN) (err error)

Jump to

Keyboard shortcuts

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