replicationconnection

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReplicationConnection

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

func NewReplicationConnection

func NewReplicationConnection(
	replicationContext replicationcontext.ReplicationContext,
) (*ReplicationConnection, error)

func (*ReplicationConnection) Close

func (rc *ReplicationConnection) Close() error

func (*ReplicationConnection) CreateReplicationSlot

func (rc *ReplicationConnection) CreateReplicationSlot() (slotName, snapshotName string, created bool, err error)

func (*ReplicationConnection) DropReplicationSlot

func (rc *ReplicationConnection) DropReplicationSlot() error

func (*ReplicationConnection) ReceiveMessage

func (rc *ReplicationConnection) ReceiveMessage(
	deadline time.Time,
) (pgproto3.BackendMessage, error)

func (*ReplicationConnection) SendStatusUpdate

func (rc *ReplicationConnection) SendStatusUpdate() error

func (*ReplicationConnection) StartReplication

func (rc *ReplicationConnection) StartReplication(
	pluginArguments []string,
) (pgtypes.LSN, error)

func (*ReplicationConnection) StopReplication

func (rc *ReplicationConnection) StopReplication() error

Jump to

Keyboard shortcuts

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