Documentation
¶
Index ¶
Constants ¶
View Source
const (
UpdateSourceSQL = "update pgcapture.sources set commit=$1,seq=$2,mid=$3,commit_ts=$4,apply_ts=now() where id=$5"
)
Variables ¶
View Source
var ( LogLSNRegex = regexp.MustCompile(`(?:consistent recovery state reached at|redo done at) ([0-9A-F]{1,8}\/[0-9A-F]{1,8})`) LogTxTimeRegex = regexp.MustCompile(`last completed transaction was at log time (.*)\.?$`) )
Functions ¶
func PGTime2Time ¶
Types ¶
type BaseSink ¶
type BaseSink struct {
CleanFn CleanFn
// contains filtered or unexported fields
}
type PGXSink ¶
type PGXSink struct {
BaseSink
ConnStr string
SourceID string
Renice int64
LogReader io.Reader
BatchTXSize int
// contains filtered or unexported fields
}
func (*PGXSink) ReplicationLagMilliseconds ¶
type PulsarSink ¶
type PulsarSink struct {
BaseSink
PulsarOption pulsar.ClientOptions
PulsarTopic string
// For overriding the cluster list to be replicated to
ReplicatedClusters []string
SetupTracker SetupTracker
// contains filtered or unexported fields
}
func (*PulsarSink) Apply ¶
func (p *PulsarSink) Apply(changes chan source.Change) chan cursor.Checkpoint
func (*PulsarSink) Setup ¶
func (p *PulsarSink) Setup() (cp cursor.Checkpoint, err error)
type SetupTracker ¶
Click to show internal directories.
Click to hide internal directories.