cdcpostgres

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const BackendName = "cdc-postgres"

Variables

This section is empty.

Functions

This section is empty.

Types

type CDCPostgres

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

func New

func New(connOpts *opts.ConnectionOptions) (*CDCPostgres, error)

func (*CDCPostgres) Close

func (c *CDCPostgres) Close(_ context.Context) error

func (*CDCPostgres) DisplayError

func (c *CDCPostgres) DisplayError(msg *records.ErrorRecord) error

DisplayError will parse an Error record and print (pretty) output to STDOUT

func (*CDCPostgres) DisplayMessage

func (c *CDCPostgres) DisplayMessage(cliOpts *opts.CLIOptions, msg *records.ReadRecord) error

func (*CDCPostgres) Name

func (c *CDCPostgres) Name() string

func (*CDCPostgres) Read

func (c *CDCPostgres) Read(ctx context.Context, readOpts *opts.ReadOptions, resultsChan chan *records.ReadRecord, errorChan chan *records.ErrorRecord) error

func (*CDCPostgres) Relay

func (c *CDCPostgres) Relay(ctx context.Context, relayOpts *opts.RelayOptions, relayCh chan interface{}, errorCh chan<- *records.ErrorRecord) error

func (*CDCPostgres) Test

func (c *CDCPostgres) Test(_ context.Context) error

func (*CDCPostgres) Tunnel added in v1.4.0

func (c *CDCPostgres) Tunnel(ctx context.Context, tunnelOpts *opts.TunnelOptions, tunnelSvc tunnel.ITunnel, errorCh chan<- *records.ErrorRecord) error

func (*CDCPostgres) Write

func (c *CDCPostgres) Write(ctx context.Context, writeOpts *opts.WriteOptions, errorCh chan<- *records.ErrorRecord, messages ...*records.WriteRecord) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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