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

# Functions

FindAllTargets goes through all serving shards in the topology for the provided tablet types.
NewResilientServer creates a new ResilientServer based on the provided topo.Server.
NewResolver creates a new Resolver.
NewTargetStatsMultiplexer returns an initialized TargetStatsMultiplexer.
ResolvedShardEqual is an equality check on *ResolvedShard.
ResolvedShardsEqual is an equality check on []*ResolvedShard.
ValuesEqual is a helper method to compare arrays of values.

# Constants

TopoTemplate is the HTML to use to display the ResilientServerCacheStatus object.

# Variables

StatusFuncs is required for CacheStatus) to work properly.

# Structs

ResilientServer is an implementation of srvtopo.Server based on a topo.Server that uses a cache for two purposes: - limit the QPS to the underlying topo.Server - return the last known value of the data if there is an error.
ResilientServerCacheStatus has the full status of the cache.
ResolvedShard contains everything we need to send a query to a shard.
A Resolver can resolve keyspace ids and key ranges into ResolvedShard* objects.
SrvKeyspaceCacheStatus is the current value for a SrvKeyspace object.
SrvKeyspaceNamesCacheStatus is the current value for SrvKeyspaceNames.
TargetStatsEntry has the updated information for a Target.
TargetStatsMultiplexer is a helper class to help broadcast stats updates.

# Interfaces

Server is a subset of the topo.Server API that only contains the serving graph read-only calls used by clients to resolve serving addresses, and to get VSchema.
TargetStats is an interface that the srvtopo module uses to handle routing of queries.
TargetStatsListener is an interface used to propagate TargetStats changes.

# Type aliases

SrvKeyspaceCacheStatusList is used for sorting.
SrvKeyspaceNamesCacheStatusList is used for sorting.