package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev

# Packages

Package events defines the structures used for events dispatched from the wrangler package.

# Functions

ApplyVSchemaDDL applies the given DDL statement to the vschema keyspace definition and returns the modified keyspace object.
ChangeType changes the type of the tablet.
CheckOwnership returns nil iff the Hostname and port match on oldTablet and newTablet, which implies that no other tablet process has taken over the record.
ConfigureTabletHook configures the right parameters for a hook running locally on a tablet.
CopyMapKeys copies keys from from map m into a new slice with the type specified by typeHint.
CopyMapValues copies values from from map m into a new slice with the type specified by typeHint.
DeleteTablet removes a tablet record from the topology: - the replication data record if any - the tablet record.
FindOverlappingShards will return an array of OverlappingShards for the provided keyspace.
FindTabletByHostAndPort searches within a tablet map for tablets.
GetAllTablets returns a sorted list of tablets.
GetAllTabletsAcrossCells returns all tablets from known cells.
MapKeys returns an array with th provided map keys.
OverlappingShardsForShard returns the OverlappingShards object from the list that has he provided shard, or nil.
RebuildKeyspace rebuilds the serving graph data while locking out other changes.
RebuildKeyspaceLocked should only be used with an action lock on the keyspace - otherwise the consistency of the serving graph data can't be guaranteed.
RebuildVSchema rebuilds the SrvVSchema for the provided cell list (or all cells if cell list is empty).
SortedTabletMap returns two maps: - The slaveMap contains all the non-master non-scrapped hosts.
TabletIdent returns a concise string representation of this tablet.
TargetIdent returns a concise string representation of a query target.

# Structs

OverlappingShards contains sets of shards that overlap which each-other.