package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev
# Packages
Package buffer provides a buffer for MASTER traffic during failovers.
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 planbuilder allows you to build execution
plans that describe how to fulfill a query that may
span multiple keyspaces or shards.
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.
NewAutocommitSession returns a SafeSession based on the original session, but with autocommit enabled.
NewExecutor creates a new Executor.
NewLogStats constructs a new LogStats with supplied Method and ctx field values, and the StartTime field set to the present time.
NewResolver creates a new Resolver.
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.
RegisterPluginInitializer lets plugins register themselves to be init'ed at servenv.OnRun-time.
StrsEquals compares contents of two string slices.
# Constants
ExecutorTemplate is the HTML template to display ExecutorStats.
VSchemaTemplate is the HTML template to display VSchemaStats.
# Variables
QueryLogger enables streaming logging of queries.
QueryLogHandler is the debug UI path for exposing query logs.
QueryLogzHandler is the debug UI path for exposing query logs.
QueryzHandler is the debug UI path for exposing query plan stats.
RegisterL2VTGates stores register funcs for L2VTGate server.
RegisterVTGates stores register funcs for VTGate server.
# Structs
Executor is the engine that executes queries by utilizing the abilities of the underlying vttablets.
L2VTGate implements queryservice.QueryService and forwards queries to the underlying gateway.
LogStats records the stats for a single vtgate query.
Resolver is the layer to resolve KeyspaceIds and KeyRanges to shards.
SafeSession is a mutex-protected version of the Session.
ScatterConn is used for executing queries across multiple shard level connections.
TxConn is used for executing transactional requests.
VSchemaKeyspaceStats contains a rollup of the VSchema stats for a keyspace.
VSchemaManager is used to watch for updates to the vschema and to implement the DDL commands to add / remove vindexes.
VSchemaStats contains a rollup of the VSchema stats.
VTGate is the rpc interface to vtgate.
# Type aliases
RegisterL2VTGate defines the type of registration mechanism.
RegisterVTGate defines the type of registration mechanism.