pxc

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const UsingPassErrorMessage = `mysqlbinlog: [Warning] Using a password on the command line interface can be insecure.`

Variables

This section is empty.

Functions

func GetPXCLastHost

func GetPXCLastHost(pxcServiceName string) (string, error)

Types

type Binlog

type Binlog struct {
	Name      string
	Size      int64
	Encrypted string
}

type PXC

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

PXC is a type for working with pxc

func NewPXC

func NewPXC(addr string, user, pass string) (*PXC, error)

NewManager return new manager for work with pxc

func (*PXC) Close

func (p *PXC) Close() error

Close is for closing db connection

func (*PXC) DropCollectorFunctions

func (p *PXC) DropCollectorFunctions() error

func (*PXC) GetBinLogFirstTimestamp

func (p *PXC) GetBinLogFirstTimestamp(binlog string) (string, error)

GetBinLogFirstTimestamp return binary log file first timestamp

func (*PXC) GetBinLogList

func (p *PXC) GetBinLogList() ([]Binlog, error)

GetBinLogList return binary log files list

func (*PXC) GetBinLogName

func (p *PXC) GetBinLogName(gtidSet string) (string, error)

GetBinLogName returns name of the binary log file by given GTID set

func (*PXC) GetGTIDSet

func (p *PXC) GetGTIDSet(binlogName string) (string, error)

GetGTIDSet return GTID set by binary log file name

func (*PXC) GetHost

func (p *PXC) GetHost() string

GetHost returns pxc host

func (*PXC) IsGTIDSubset

func (p *PXC) IsGTIDSubset(subSet, gtidSet string) (bool, error)

Jump to

Keyboard shortcuts

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