gtid

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrderedBy

func OrderedBy(less ...lessFunc) *multiSorter

OrderedBy returns a Sorter that sorts using the less functions, in order. Call its Sort method to sort the data.

Types

type Gtid

type Gtid struct {
	DomainID uint64
	ServerID uint64
	SeqNo    uint64
}

Gtid defines a GTID object

func NewGtid

func NewGtid(s string) *Gtid

NewGtid returns a new Gtid from a string

func NewMySQLGtid

func NewMySQLGtid(s string) *Gtid

type List

type List []Gtid

List defines a slice of GTIDs

func NewList

func NewList(s string) *List

NewList returns a slice of GTIDs from a string Usually it shouldn't be called directly

func NewMySQLList

func NewMySQLList(s string) *List

func (List) Equal

func (gl List) Equal(glcomp *List) bool

func (List) GetDomainIDs

func (gl List) GetDomainIDs() []uint64

GetDomainIDs returns a slice of domain ID integers

func (List) GetSeqNos

func (gl List) GetSeqNos() []uint64

GetSeqNos returns a slice of sequence integers

func (List) GetSeqServerIdNos

func (gl List) GetSeqServerIdNos(serverId uint64) uint64

return the sequence of a sprecific domain

func (List) GetServerIDs

func (gl List) GetServerIDs() []uint64

GetServerIDs returns a slice of server ID integers

func (List) Sprint

func (gl List) Sprint() string

Sprint returns a formatted GTID List string

Jump to

Keyboard shortcuts

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