prog

package
v0.0.0-...-64b8ef3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Position

type Position struct {
	Name     string
	Pos      uint32
	ServerID uint32
}

func (Position) Compare

func (p Position) Compare(o Position) int

func (Position) String

func (p Position) String() string

type Progress

type Progress struct {
	Pos  Position
	Gset mysql.GTIDSet
}

func (*Progress) Clone

func (o *Progress) Clone() Progress

func (*Progress) Compare

func (o *Progress) Compare(p *Progress) int

Use file&pos to compare, can not use gtid_set, because gtid_set may not contain each other

func (*Progress) GTIDSet

func (o *Progress) GTIDSet() mysql.GTIDSet

func (*Progress) IsZero

func (o *Progress) IsZero() bool

func (*Progress) Position

func (o *Progress) Position() Position

func (*Progress) String

func (o *Progress) String() string

func (*Progress) Update

func (o *Progress) Update(pos Position)

func (*Progress) UpdateGTIDSet

func (o *Progress) UpdateGTIDSet(gset mysql.GTIDSet)

Jump to

Keyboard shortcuts

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