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

# Packages

Package splitquery contains the logic needed for implementing the tabletserver's SplitQuery RPC.
Package tabletenv maintains environment variables and types that are common for all packages of tabletserver.
Package txserializer provides the vttablet hot row protection.

# Functions

NewQueryDetail creates a new QueryDetail.
NewQueryEngine creates a new QueryEngine.
NewQueryList creates a new QueryList.
NewReplicationWatcher creates a new ReplicationWatcher.
NewServer creates a new TabletServer based on the command line flags.
NewTabletServer creates an instance of TabletServer.
NewTabletServerWithNilTopoServer is typically used in tests that don't need a topoServer member.
NewTwoPC creates a TwoPC variable.
NewTxEngine creates a new TxEngine.
NewTxPool creates a new TxPool.
NewTxPreparedPool creates a new TxPreparedPool.

# Constants

DTStateCommit represents the COMMIT state for dt_state.
DTStatePrepare represents the PREPARE state for dt_state.
DTStateRollback represents the ROLLBACK state for dt_state.
RedoStateFailed represents the Failed state for redo_state.
RedoStatePrepared represents the Prepared state for redo_state.
StateNotConnected is the state where tabletserver is not connected to an underlying mysql instance.
StateNotServing is the state where tabletserver is connected to an underlying mysql instance, but is not serving queries.
StateServing is where queries are allowed.
StateShuttingDown indicates that the tabletserver is shutting down.
StateTransitioning is a transient state indicating that the tabletserver is tranisitioning to a new state.
These consts identify how a transaction was resolved.
These consts identify how a transaction was resolved.
These consts identify how a transaction was resolved.
These consts identify how a transaction was resolved.
These consts identify how a transaction was resolved.

# Variables

RegisterFunctions is a list of all the RegisterFunction that will be called upon Register() on a TabletServer.

# Structs

DistributedTx is similar to querypb.TransactionMetadata, but is display friendly.
PreparedTx represents a displayable version of a prepared transaction.
QueryDetail is a simple wrapper for Query, Context and a killable conn.
QueryDetailzRow is used for rendering QueryDetail in a template.
QueryEngine implements the core functionality of tabletserver.
QueryExecutor is used for executing a query request.
QueryList holds a thread safe list of QueryDetails.
QueryStats tracks query stats for export per planName/tableName.
ReplicationWatcher is a tabletserver service that watches the replication stream.
TabletPlan wraps the planbuilder's exec plan to enforce additional rules and track stats.
TabletServer implements the RPC interface for the query service.
TwoPC performs 2PC metadata management (MM) functions.
TxConnection is meant for executing transactions.
TxEngine handles transactions.
TxExecutor is used for executing a transactional request.
TxPool is the transaction pool for the query service.
TxPreparedPool manages connections for prepared transactions.

# Interfaces

Controller defines the control interface for TabletServer.

# Type aliases

RegisterFunction is a callback type to be called when we Register() a TabletServer.