package
0.15.10
Repository: https://github.com/estuary/vitess.git
Documentation: pkg.go.dev

# Functions

AppendGTID returns a new Position that represents the position after the given GTID is replicated.
DecodeGTID converts a string in the format returned by EncodeGTID back into a GTID interface value with the correct underlying flavor.
DecodePosition converts a string in the format returned by EncodePosition back into a Position value with the correct underlying flavor.
DecodePositionDefaultFlavor converts a string in the format returned by EncodePosition back into a Position value with the correct underlying flavor.
DecodePositionMySQL56 converts a string into a Position value with the MySQL56 flavor.
EncodeGTID returns a string that contains both the flavor and value of the GTID, so that the correct parser can be selected when that string is passed to DecodeGTID.
EncodePosition returns a string that contains both the flavor and value of the Position, so that the correct parser can be selected when that string is passed to DecodePosition.
MustDecodeGTID calls DecodeGTID and panics on error.
MustParseGTID calls ParseGTID and panics on error.
MustParsePosition calls ParsePosition and panics on error.
NewMysql56GTIDSetFromSIDBlock builds a Mysql56GTIDSet from parsing a SID Block.
ParseFilePosGTIDSet is registered as a GTIDSet parser.
No description provided by the author
No description provided by the author
ParseGTID calls the GTID parser for the specified flavor.
ParseMariadbGTIDSet is registered as a GTIDSet parser.
No description provided by the author
ParseMysql56GTIDSet is registered as a GTIDSet parser.
No description provided by the author
No description provided by the author
ParsePosition calls the parser for the specified flavor.
ParsePrimaryStatus parses the common fields of SHOW BINARY LOG STATUS.
ParseReplicationStatus parses the common (non-flavor-specific) fields of ReplicationStatus.
ParseSID parses an SID in the form used by MySQL 5.6.
PrimaryStatusToProto translates a PrimaryStatus to proto3.
ProtoToReplicationStatus translates a proto Status, or panics.
ReplicationStatusToProto translates a Status to proto3.
ReplicationStatusToState converts a value you have for the IO thread(s) or SQL thread(s) or Group Replication applier thread(s) from MySQL or intermediate layers to a ReplicationState.
Subtract takes in two Mysql56GTIDSets as strings and subtracts the second from the first The result is also a string.

# Constants

FilePosFlavorID is the string identifier for the filePos flavor.
MariadbFlavorID is the string identifier for the MariaDB flavor.
MaximumPositionSize is the maximum size of a replication position.
Mysql56FlavorID is the string identifier for the Mysql56 flavor.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

FilePosGTID implements GTID.
MariadbGTID implements GTID.
Mysql56GTID implements GTID.
Position represents the information necessary to describe which transactions a server has seen, so that it can request a replication stream from a new source that picks up where it left off.
PrimaryStatus holds replication information from SHOW BINARY LOG STATUS.
ReplicationStatus holds replication information from SHOW REPLICA STATUS.

# Interfaces

GTID represents a Global Transaction ID, also known as Transaction Group ID.
GTIDSet represents the set of transactions received or applied by a server.

# Type aliases

MariadbGTIDSet implements GTIDSet.
Mysql56GTIDSet implements GTIDSet for MySQL 5.6.
No description provided by the author
SID is the 16-byte unique ID of a MySQL 5.6 server.