package
2.1.0-alpha.1+incompatible
Repository: https://github.com/gitql/vitess.git
Documentation: pkg.go.dev

# Functions

EvenShardsKeyRange returns a key range definition for a shard at index "i", assuming range based sharding with "n" equal-width shards in total.
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.

# Type aliases

Uint64Key is a uint64 that can be converted into a KeyspaceId.