replicator

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Replicator

type Replicator interface {
	// 创建逻辑复制槽
	CreateReplicationSlotEx(slotName, outputPlugin string) (consistentPoint string, snapshotName string, err error)
	// 删除复制槽
	DropReplicationSlot(slotName string) (err error)
	// 开始复制
	StartReplication(slotName string, startLsn uint64, timeline int64, pluginArguments ...string) (err error)
	// 等待复制消息
	WaitForReplicationMessage(ctx context.Context) (*pgx.ReplicationMessage, error)
	// 发送
	SendStandbyStatus(k *pgx.StandbyStatus) (err error)
	// 检查链接是否正常
	IsAlive() bool
	// 关闭链接
	Close() error
}

Replicator 复制器接口

Jump to

Keyboard shortcuts

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