binlog_checker

package
v0.9.32 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

View Source
const DRC_TIME_LAYOUT_VERSION_01 = "2006-01-02 15:04:05.999999999"

Variables

This section is empty.

Functions

func IsBinlogCheckerMsg

func IsBinlogCheckerMsg(db string, table string) bool

Types

type BinlogChecker

type BinlogChecker interface {
	Start() error
	Stop()
	MarkActive(row Row)
	// IsEventBelongsToMySelf(event *replication.RowsEvent) bool
	IsEventBelongsToMySelf(row Row) bool
}

func NewBinlogChecker

func NewBinlogChecker(
	pipelineName string,
	dbConfig *utils.DBConfig,
	annotation string,
	interval time.Duration,
	disableChecker bool) (BinlogChecker, error)

type Row

type Row struct {
	GravityName         string
	Offset              int64
	UpdateTimeAtGravity time.Time
	UpdateTimeAtSource  time.Time
}

func ParseMySQLRowEvent

func ParseMySQLRowEvent(event *replication.RowsEvent) (Row, error)

func ParseTiDBRow

func ParseTiDBRow(row pb.Row) (Row, error)

Jump to

Keyboard shortcuts

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