replica

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLDB

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

func NewMySQLDB added in v0.0.4

func NewMySQLDB(db *sql.DB, monitorUser string, monitorPass string) (*MySQLDB, error)

func (*MySQLDB) FixErrantGTID

func (db *MySQLDB) FixErrantGTID(forceOption bool) error

type MySQLServerInfo added in v0.0.4

type MySQLServerInfo struct {
	ServerId   int    `db:"Server_id"`
	Host       string `db:"Host"`
	ServerUuid string `db:"Slave_UUID"`
}

type ReplicaNode added in v1.0.3

type ReplicaNode struct {
	AutoPosition      bool   `db:"Auto_Position"`
	ChannelName       string `db:"Channel_Name"`
	ExecutedGtidSet   string `db:"Executed_Gtid_Set"`
	GtidExecuted      string // @@gtid_executed
	Info              MySQLServerInfo
	Level             int
	Source            *ReplicaNode
	MasterHost        string `db:"Master_Host"`
	MasterPort        int    `db:"Master_Port"`
	MasterUUID        string `db:"Master_UUID"`
	ReplicaIORunning  string `db:"Slave_IO_Running"`
	ReplicaSQLRunning string `db:"Slave_SQL_Running"`
}

func (ReplicaNode) DB added in v1.0.3

func (node ReplicaNode) DB(monitorUser string, monitorPass string) (*sqlx.DB, error)

Jump to

Keyboard shortcuts

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