package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev
# Functions
IsTypeInList returns true if the given type is in the list.
KeyspaceShardString returns a "keyspace/shard" string taking keyspace and shard as separate inputs.
MakeStringTypeList returns a list of strings that match the input list.
MysqlAddr returns the host:port of the mysql server.
MysqlHostname returns the mysql host name.
MySQLIP returns the MySQL server's IP by resolvign the host name.
MysqlPort returns the mysql port.
ParseDestination parses the string representation of a Destionation of the form keyspace:shard@tablet_type.
ParseKeyspaceShard parse a "keyspace/shard" string and extract both keyspace and shard.
ParseTabletAlias returns a TabletAlias for the input string, of the form <cell>-<uid>.
ParseTabletType parses the tablet type into the enum.
ParseTabletTypes parses a comma separated list of tablet types and returns a slice with the respective enums.
ParseUID parses just the uid (a number).
SetMysqlPort sets the mysql port for tablet.
ShardHasCell returns true if the cell is listed in the Cells for the shard.
SourceShardAsHTML returns a HTML version of the object.
SourceShardString returns a printable view of a SourceShard.
SrvKeyspaceGetPartition returns a Partition for the given tablet type, or nil if it's not there.
TabletAliasEqual returns true if two TabletAlias match.
TabletAliasIsZero returns true iff cell and uid are empty.
TabletAliasString formats a TabletAlias.
TabletAliasUIDStr returns a string version of the uid.
TabletDbName is usually implied by keyspace.
TabletIsAssigned returns if this tablet is assigned to a keyspace and shard.
TabletTypeListVar defines a []TabletType flag with the specified name and usage string.
TabletTypeLString returns a lower case version of the tablet type, or "unknown" if not known.
TabletTypeVar defines a TabletType flag with the specified name, default value and usage string.
# Variables
AllTabletTypes lists all the possible tablet types.
SlaveTabletTypes contains all the tablet type that can have replication enabled.
# Type aliases
ShardReferenceArray is used for sorting ShardReference arrays.
TabletAliasList is used mainly for sorting.
TabletTypeFlag implements the flag.Value interface, for parsing a command-line value into a TabletType.
TabletTypeListValue implements the flag.Value interface, for parsing a command-line comma-separated list of value into a slice of TabletTypes.