models

package
v0.0.0-...-66c7839 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryLog

type BinaryLog struct {
	LogName  string `gorm:"column:Log_name"`
	FileSize uint64 `gorm:"column:File_size"`
}

func (*BinaryLog) Equal

func (this *BinaryLog) Equal(other *BinaryLog) bool

比较两个BinaryLog记录是否一样

type CustomBinlogEvent

type CustomBinlogEvent struct {
	Event    *replication.BinlogEvent
	ThreadId uint32
}

type DBTable

type DBTable struct {
	TableSchema string `gorm:"column:TABLE_SCHEMA"`
	TableName   string `gorm:"column:TABLE_NAME"`
}

func NewDBTable

func NewDBTable(schema string, table string) *DBTable

func (*DBTable) String

func (this *DBTable) String() string

type Position

type Position struct {
	File              string    `gorm:"column:File"`
	Position          uint64    `gorm:"column:Position"`
	Binlog_Do_DB      string    `gorm:"column:Binlog_Do_DB"`
	Binlog_Ignore_DB  string    `gorm:"column:Binlog_Ignore_DB"`
	Executed_Gtid_Set string    `gorm:"column:Executed_Gtid_Set"`
	TS                time.Time `gorm:"-"`
}

func (*Position) Equal

func (this *Position) Equal(other *Position) bool

比较两个位点是否一样

func (*Position) GetFileNum

func (this *Position) GetFileNum() int64

func (*Position) GetTotalNum

func (this *Position) GetTotalNum() int64

func (*Position) LessThan

func (this *Position) LessThan(other *Position) bool

比较两个位点是否一样

func (*Position) String

func (this *Position) String() string

Jump to

Keyboard shortcuts

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