replicationchannel

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReplicationChannel

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

ReplicationChannel represents the database connection and handler loop for the logical replication decoding subscriber.

func NewReplicationChannel

func NewReplicationChannel(replicationContext *repcontext.ReplicationContext) (*ReplicationChannel, error)

NewReplicationChannel instantiates a new instance of the ReplicationChannel.

func (*ReplicationChannel) StartReplicationChannel

func (rc *ReplicationChannel) StartReplicationChannel(
	replicationContext *repcontext.ReplicationContext, initialTables []systemcatalog.SystemEntity) error

StartReplicationChannel starts the replication channel, as well as initializes and starts the logical replication handler loop.

func (*ReplicationChannel) StopReplicationChannel

func (rc *ReplicationChannel) StopReplicationChannel() error

StopReplicationChannel initiates a clean shutdown of the replication channel and logical replication handler loop. This call will block until the loop is cleanly shut down.

Jump to

Keyboard shortcuts

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