mello

package
v0.0.0-...-18f389e Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoServerId

func AutoServerId() uint32

func KeyInList

func KeyInList(e string, tableList []string) bool

func KeyInMap

func KeyInMap(e string, tableMap map[string]int) bool

func Output

func Output(param *BinlogInfo, myMap map[string]int, title string)

func OutputPlus

func OutputPlus(param *BinlogInfo, myMap map[string]int, title string, myCountMap map[string]int, mySizeMap map[string]int)

func OutputStmtInfo

func OutputStmtInfo(param *BinlogInfo, myStmt []StmtInfo, title string)

func SqlTextTablekey

func SqlTextTablekey(sql string) string

Types

type BinlogInfo

type BinlogInfo struct {
	Cfg            BinlogSyncerConfig
	BinlogName     string
	TopNum         int
	MaxSqllen      int
	InputStartTime uint32
	InputEndTime   uint32
	InputQuery     string
}

func InputInfo

func InputInfo() *BinlogInfo

type Pair

type Pair struct {
	Key   interface{}
	Value int
}

type PairList

type PairList []Pair

func (PairList) Len

func (p PairList) Len() int

func (PairList) Less

func (p PairList) Less(i, j int) bool

func (PairList) Swap

func (p PairList) Swap(i, j int)

type PairListStmt

type PairListStmt []PairStmt

func (PairListStmt) Len

func (p PairListStmt) Len() int

func (PairListStmt) Less

func (p PairListStmt) Less(i, j int) bool

func (PairListStmt) Swap

func (p PairListStmt) Swap(i, j int)

type PairStmt

type PairStmt struct {
	Key   interface{}
	Value int
	Dt    uint32
}

type StmtInfo

type StmtInfo struct {
	Key   interface{}
	Value int
	Dt    uint32
}

Jump to

Keyboard shortcuts

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