replication

package
v0.0.0-...-3003f12 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Replication

type Replication struct {
	Database          string
	Host              string
	Port              uint16
	User              string
	Connection        *pgx.ReplicationConn
	KeepaliveInterval time.Duration
	SlotName          string
	CreateSlot        bool
	DropSlot          bool
	Options           []string
}

func (*Replication) Connect

func (r *Replication) Connect(ctx context.Context)

func (*Replication) Read

func (r *Replication) Read(ctx context.Context, send chan pgx.WalMessage, ack chan uint64)

Jump to

Keyboard shortcuts

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