package
0.0.0-20190424025805-13d8ce4561ea
Repository: https://github.com/flike/kingbus.git
Documentation: pkg.go.dev
# Constants
BinlogChecksum is the variable name of binlog_checksum in mysql.
BinlogFormat is the variable name of binlog_format in mysql.
EventBoundaryTypeBeginTrx represents Query_log_event(BEGIN) or Query_log_event(XA START).
EventBoundaryTypeEndTrx represents Xid, Query_log_event(COMMIT), Query_log_event(ROLLBACK), XA_Prepare_log_event.
EventBoundaryTypeEndXaTrx represents Query_log_event(XA ROLLBACK).
EventBoundaryTypeError represents error.
EventBoundaryTypeGtid represents Gtid_log_event.
EventBoundaryTypeIgnore represents All non DDL/DML events: Format_desc, Rotate,Previous_gtids, Stop, etc.
EventBoundaryTypeIncident represents Incident.
EventBoundaryTypePreStatement represents User_var, Intvar and Rand.
EventBoundaryTypeStatement represents All other Query_log_events and all other DML events (Rows, Load_data, etc.).
EventParserDDL is set after DDL-2.
EventParserDML is set after DML-2.
EventParserError is set whenever the above pattern is not followed.
EventParserGtid is set after DDL-1 or DML-1.
EventParserNone is set after DDL-3 or DML-4.
GtidMode is the variable name of gtid_mode in mysql.
GtidPurged is the variable name of gtid_purged in mysql.
MasterBinlogChecksum is the variable name of master_binlog_checksum in mysql.
MasterHeartbeatPeriod is the variable name of master_heartbeat_period in mysql.
MaxPayloadLen is the max size of one packet in mysql.
OKHeaderByte is is the flag for OK packet header.
REGISTERED represents slave has been register.
ServerID is the variable name of server id in mysql.
ServerUUID is the variable name of server uuid in mysql.
SetNames using in the replication interaction process.
SlaveUUID is the variable name of slave uuid in mysql.
UnixTimestamp is the variable name of unix_timestamp in mysql.
UNREGISTERED represents slave has not been register.
Version is the variable name of version in mysql.
VersionComment is the variable name of version_comment in mysql.
# Variables
ErrBadConn returns for connection was bad.
ErrChecksum returns for master_binlog_checksum is not crc32.
ErrLargePacket returns for the the packet is large than 16MB.
ErrSQLNotSupport returns for sql is not support.
ErrUpdateState returns for transaction boundary parser update state error.
MaxHeartbeatPeriod is ten years.
# Structs
BaseConn is the base class to handle MySQL protocol.
Conn acts like a MySQL server connection,you can use MySQL client to communicate with it.
MasterInfo is the master information of syncer connected.
Slave replicating binlogs from kingbus.
Stats is slave stats.
TransactionBoundaryParser represents a transaction boundary parser.
# Interfaces
BinlogServer implements binlog master functions used in replication.
# Type aliases
EventBoundaryType is the type of binlog event boundary.
ReplicationState is the slave state.