sync_server

package
v0.0.0-...-7e572ab Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sync

type Sync struct {
	// contains filtered or unexported fields
}

Sync 同步模块

func New

func New(sharedSync *pkg.SharedSync) (*Sync, error)

func (*Sync) GetMasterPos

func (s *Sync) GetMasterPos() (mysql.Position, error)

GetMasterPos 获取 Master Pos信息

func (*Sync) Monitor

func (s *Sync) Monitor() error

func (*Sync) QueryEventProcess

func (s *Sync) QueryEventProcess(event *replication.BinlogEvent, queryEvent *replication.QueryEvent) error

func (*Sync) RotateEventProcess

func (s *Sync) RotateEventProcess(event *replication.BinlogEvent, rotateEvent *replication.RotateEvent) error

func (*Sync) RowsEventProcess

func (s *Sync) RowsEventProcess(action string, event *replication.BinlogEvent, rowsEvent *replication.RowsEvent) error

Jump to

Keyboard shortcuts

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