package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev
# Functions
DestinationsString returns a printed version of the destination array.
EvenShardsKeyRange returns a key range definition for a shard at index "i", assuming range based sharding with "n" equal-width shards in total.
GetShardForKeyspaceID finds the right shard for a keyspace id.
KeyRangeContains returns true if the provided id is in the keyrange.
KeyRangeEndEqual returns true if both key ranges have the same end.
KeyRangeEqual returns true if both key ranges cover the same area.
KeyRangeIncludes returns true if the first provided KeyRange, big, contains the second KeyRange, small.
KeyRangeIsPartial returns true if the KeyRange does not cover the entire space.
KeyRangesIntersect returns true if some Keyspace values exist in both ranges.
KeyRangesOverlap returns the overlap between two KeyRanges.
KeyRangeStartEqual returns true if both key ranges have the same start.
KeyRangeString prints a topodatapb.KeyRange.
ParseKeyRangeParts parses a start and end hex values and build a proto KeyRange.
ParseKeyspaceIDType parses the keyspace id type into the enum.
ParseShardingSpec parses a string that describes a sharding specification.
# Structs
DestinationAllShards is the destination for all the shards in the keyspace.
DestinationAnyShard is the destination for any one shard in the keyspace.
DestinationExactKeyRange is the destination for a single KeyRange.
DestinationKeyRange is the destination for a single KeyRange.
DestinationNone is a destination that doesn't resolve to any shard.
# Interfaces
Destination is an interface definition for a query destination, within a given Keyspace / Tablet Type.
# Type aliases
DestinationExactKeyRanges is the destination for multiple KeyRanges.
DestinationKeyRanges is the destination for multiple KeyRanges.
DestinationKeyspaceID is the destination for a single KeyspaceID.
DestinationKeyspaceIDs is the destination for multiple KeyspaceIDs.
DestinationShard is the destination for a single Shard.
DestinationShards is the destination for multiple shards.
Uint64Key is a uint64 that can be converted into a KeyspaceId.