replicationchannel

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: 19 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 replicationcontext.ReplicationContext, typeManager pgtypes.TypeManager,
	taskManager task.TaskManager, publicationManager publication.PublicationManager,
	statsService *stats.Service,
) (*ReplicationChannel, error)

NewReplicationChannel instantiates a new instance of the ReplicationChannel.

func (*ReplicationChannel) StartReplicationChannel

func (rc *ReplicationChannel) StartReplicationChannel(
	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