client

package
v0.0.0-...-ec26dd8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 12 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 struct {
	// contains filtered or unexported fields
}

func New

func New(shutdownHandler shutdown.ShutdownHandler,
	statsChan chan stats.Stat,
	connManager conn.ManagerInterface,
	clientBufferSize int) Replicator

New a simple constructor to create a replication.client with postgres configurations.

func (*Replicator) GetOutputChan

func (c *Replicator) GetOutputChan() chan *replication.WalMessage

GetOutputChan returns the outputChan

func (*Replicator) GetStoppedChan

func (c *Replicator) GetStoppedChan() chan struct{}

GetStoppedChan returns stoppedChan

func (*Replicator) Start

func (c *Replicator) Start(progressChan <-chan uint64)

Start loops on serially updating overallProgress from the progress channel, reading in a pgx.ReplicationMessages from the API, and sending out converted replication.WalMessages on the output Channel. Additionally it sends back a StandbyStatus when requested from postgres. Start needs to be provided a progressChan because we need to initialize all the modules first to produce a progressChan needed for the replication.client

Directories

Path Synopsis
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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