package
2.0.0-alpha2+incompatible
Repository: https://github.com/erzel/vitess.git
Documentation: pkg.go.dev
# Packages
Package backupstorage contains the interface and file system implementation of the backup system.
Package filebackupstorage implements the BacksupStorage interface for a local filesystem (which can be an NFS mount).
Package grpcmysqlctlclient contains the gRPC1 version of the mysqlctl client protocol.
Package grpcmysqlctlserver contains the gRPC implementation of the server
side of the remote execution of mysqlctl commands.
Package mysqlctlclient contains the generic client side of the remote mysqlctl protocol.
No description provided by the author
# Functions
Backup is the main entry point for a backup: - uses the BackupStorage service to store a new backup - shuts down Mysqld during the backup - remember if we were replicating, restore the exact same state.
ConcurrentMap applies fun in a concurrent manner on integers from 0 to n-1 (they are assumed to be indexes of some slice containing items to be processed).
CreateReparentJournal returns the commands to execute to create the _vt.reparent_journal table.
FindSlaves gets IP addresses for all currently connected slaves.
GetPermissions lists the permissions on the mysqld.
MySQLReplicationLag lag returns a reporter that reports the MySQL replication lag.
NewFakeMysqlDaemon returns a FakeMysqlDaemon where mysqld appears to be running.
NewMariadbBinlogEvent creates a BinlogEvent instance from given byte array.
NewMycnf fills the Mycnf structure with vt root paths and derived values.
NewMycnfFromFlags creates a Mycnf object from the command line flags.
NewMysql56BinlogEvent creates a BinlogEvent from given byte array.
NewMysqld creates a Mysqld object based on the provided configuration and connection parameters.
No description provided by the author
PopulateReparentJournal returns the SQL command to use to populate the _vt.reparent_journal table, as well as the time_created_ns value used.
ReadMycnf will read an existing my.cnf from disk, and create a Mycnf object.
RegisterFlags registers the command line flags for specifying the values of a mycnf config file.
ResolveTables returns a list of actual tables+views matching a list of regexps.
Restore is the main entry point for backup restore.
SnapshotDir returns the default directory for a tablet's snapshots.
StartSlave starts a slave on the provided MysqldDaemon.
StopSlave stops a slave on the provided MysqldDaemon.
TabletDir returns the default directory for a tablet.
TopLevelDirs returns the list of directories in the toplevel tablet directory that might be located in a different place.
WaitBlpPosition will wait for the filtered replication to reach at least the provided position.
WaitForSlaveStart waits until the deadline for replication to start.
# Constants
BinlogChecksumAlgCRC32 indicates that CRC32 checksums are used.
BinlogChecksumAlgOff indicates that checksums are supported but off.
BinlogChecksumAlgUndef indicates that checksums are not supported.
SQLStartSlave is the SQl command issued to start MySQL replication.
SQLStopSlave is the SQl command issued to stop MySQL replication.
# Variables
ErrNoBackup is returned when there is no backup.
ErrNotMaster means there is no master status.
ErrNotSlave means there is no slave status.
# Structs
BackupManifest represents the backup.
FakeMysqlDaemon implements MysqlDaemon and allows the user to fake everything.
FileEntry is one file to backup.
Mycnf is a memory structure that contains a bunch of interesting parameters to start mysqld.
Mysqld is the object that represents a mysqld daemon running on this server.
SlaveConnection represents a connection to mysqld that pretends to be a slave connecting for replication.
SplitStrategy is the configuration for a split clone.
# Interfaces
MysqlDaemon is the interface we use for abstracting Mysqld.
MysqlFlavor is the abstract interface for a flavor.
# Type aliases
No description provided by the author