position

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoPosition

type MongoPosition struct {
	sync.RWMutex
	ResumeTokens *msg.WatchId `bson:"_id"`
	// contains filtered or unexported fields
}

func LoadMongoPosition

func LoadMongoPosition(conf *config.MongoSrConfig) (*MongoPosition, error)

func (*MongoPosition) MongoSave

func (pos *MongoPosition) MongoSave(resumeToken *msg.WatchId) error

type Position

type Position struct {
	sync.RWMutex
	BinlogName string `toml:"binlog-name"`
	BinlogPos  string `toml:"binlog-pos"`
	BinlogGTID string `toml:"binlog-gtid"`
	// contains filtered or unexported fields
}

func LoadPosition

func LoadPosition(conf *config.MysqlSrConfig) (*Position, error)

func (*Position) GetFilePath

func (pos *Position) GetFilePath() string

func (*Position) GetMongoFilePath

func (pos *Position) GetMongoFilePath() string

func (*Position) Save

func (pos *Position) Save(gtid mysql.GTIDSet) error

Jump to

Keyboard shortcuts

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