cdc_postgres

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(opts *cli.Options) (*pgx.ReplicationConn, error)

func Read

func Read(opts *cli.Options, _ *desc.MessageDescriptor) error

func Relay

func Relay(opts *cli.Options, relayCh chan interface{}, shutdownCtx context.Context) (relay.IRelayBackend, error)

Types

type CDCPostgres

type CDCPostgres struct {
	Options *cli.Options
	Service *pgx.ReplicationConn
	Log     *logrus.Entry
	Printer printer.IPrinter
}

func (*CDCPostgres) Read

func (p *CDCPostgres) Read() error

type Relayer

type Relayer struct {
	Options *cli.Options
	RelayCh chan interface{}

	Service     *pgx.ReplicationConn
	ShutdownCtx context.Context
	// contains filtered or unexported fields
}

func (*Relayer) Relay

func (r *Relayer) Relay() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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