package
2.1.0-alpha.1+incompatible
Repository: https://github.com/gitql/vitess.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
Package fakerpcvtgateconn provides a fake implementation of vtgateconn.Impl that doesn't do any RPC, but uses a local map to return results.
Package gateway contains the routing layer of vtgate.
Package gatewaytest contains a test suite to run against a Gateway object.
Package grpcvtgateconn provides gRPC connectivity for VTGate.
Package grpcvtgateservice provides the gRPC glue for vtgate.
Package l2vtgate provides the core functionnality of a second-layer vtgate to route queries from an original vtgate to a subset of tablets.
Package masterbuffer contains experimental logic to buffer master requests in VTGate.
Package planbuilder allows you to build execution
plans that describe how to fulfill a query that may
span multiple keyspaces or shards.
No description provided by the author
No description provided by the author
Package vtgateconntest provides the test methods to make sure a vtgateconn/vtgateservice pair over RPC works correctly.
Package vtgateservice provides to interface definition for the vtgate service.
# Functions
Init initializes VTGate server.
NewPlanner creates a new planner for VTGate.
NewResilientSrvTopoServer creates a new ResilientSrvTopoServer based on the provided topo.Server.
NewResolver creates a new Resolver.
NewRouter creates a new Router.
NewSafeSession returns a new SafeSession based on the Session.
NewScatterConn creates a new ScatterConn.
NewTxConn builds a new TxConn.
NewVSchemaStats returns a new VSchemaStats from a VSchema.
StrsEquals compares contents of two string slices.
# Constants
TopoTemplate is the HTML to use to display the ResilientSrvTopoServerCacheStatus object.
VSchemaTemplate is the HTML template to display VSchemaStats.
# Variables
RegisterVTGates stores register funcs for VTGate server.
# Structs
Planner is used to compute the plan.
ResilientSrvTopoServer is an implementation of SrvTopoServer 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.
ResilientSrvTopoServerCacheStatus has the full status of the cache.
Resolver is the layer to resolve KeyspaceIds and KeyRanges to shards.
Router is the layer to route queries to the correct shards based on the values in the query.
SafeSession is a mutex-protected version of the Session.
ScatterConn is used for executing queries across multiple shard level connections.
ScatterConnError is the ScatterConn specific error.
SrvKeyspaceCacheStatus is the current value for a SrvKeyspace object.
SrvKeyspaceNamesCacheStatus is the current value for SrvKeyspaceNames.
TxConn is used for executing transactional requests.
VSchemaKeyspaceStats contains a rollup of the VSchema stats for a keyspace.
VSchemaStats contains a rollup of the VSchema stats.
VTGate is the rpc interface to vtgate.
# Type aliases
RegisterVTGate defines the type of registration mechanism.
SrvKeyspaceCacheStatusList is used for sorting.
SrvKeyspaceNamesCacheStatusList is used for sorting.
VSchemaKeyspaceStatsList is to sort VSchemaKeyspaceStats by keyspace.