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 endtoend is a test-only package.
No description provided by the author
No description provided by the author
No description provided by the author
Package queryservice contains the interface for the service definition of the Query Service.
Package querytypes defines internal types used in the APIs to deal with queries.
Package sandboxconn provides a fake TabletConn implementation for tests.
Package splitquery contains the logic needed for implementing the tabletserver's SplitQuery RPC.
No description provided by the author
Package tabletconntest provides the test methods to make sure a tabletconn/queryservice pair over RPC works correctly.
Package tabletservermock provides mock interfaces for tabletserver.

# Functions

BuildQueryRule builds a query rule from a ruleInfo.
Init must be called after flag.Parse, and before doing any other operations.
IsConnErr returns true if the error is a connection error.
MapStrOperator maps a string representation to an Operator.
NewConnPool creates a new ConnPool.
NewDBConn creates a new DBConn.
NewQueryDetail creates a new QueryDetail.
NewQueryEngine creates a new QueryEngine.
NewQueryList creates a new QueryList.
NewQueryRule creates a new QueryRule.
NewQueryRuleInfo returns an empty QueryRuleInfo object for use.
NewQueryRules creates a new QueryRules.
NewQueryServiceStats returns a new QueryServiceStats instance.
NewQuerySplitter creates a new QuerySplitter.
NewSchemaInfo creates a new SchemaInfo.
NewServer creates a new TabletServer based on the command line flags.
NewTableInfo creates a new TableInfo.
NewTabletError returns a TabletError of the given type.
NewTabletErrorSQL returns a TabletError based on the error.
NewTabletServer creates an instance of TabletServer.
NewTwoPC creates a TwoPC variable.
NewTxPool creates a new TxPool.
NewTxPreparedPool creates a new TxPreparedPool.
PrefixTabletError attempts to add a string prefix to a TabletError, while preserving its ErrorCode.
Rand generates a pseudo-random int64 number.

# Constants

These are actions.
These are comparison operators.
These are actions.
These are actions.
These are comparison operators.
These are comparison operators.
These are comparison operators.
These are comparison operators.
These are comparison operators.
These are comparison operators.
These are return statii.
These are comparison operators.
These are comparison operators.
These are comparison operators.
These are comparison operators.
These are comparison operators.
These are return statii.
These are return statii.
QuerySourceConsolidator means query result is found in consolidator.
QuerySourceMySQL means query result is returned from MySQL.
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

DefaultQsConfig is the default value for the query service config.
ErrConnPoolClosed is returned / panicked when the connection pool is closed.
RegisterFunctions is a list of all the RegisterFunction that will be called upon Register() on a TabletServer.
StatsLogger is the main stream logger object.
TxLogger can be used to enable logging of transactions.

# Structs

BindVarCond represents a bind var condition.
Config contains all the configuration for query service.
ConnPool implements a custom connection pool for tabletserver.
DBConn is a db connection for tabletserver.
ExecPlan wraps the planbuilder's exec plan to enforce additional rules and track stats.
LogStats records the stats for a single query.
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.
QueryRule represents one rule (conditions-action).
QueryRuleInfo is the maintainer of QueryRules from multiple sources.
QueryRules is used to store and execute rules for the tabletserver.
QueryServiceStats contains stats that used in queryservice level.
QuerySplitter splits a BoundQuery into equally sized smaller queries.
SchemaInfo stores the schema info and performs operations that keep itself up-to-date.
TableInfo contains the tabletserver related info for a table.
TabletError is the error type we use in this library.
TabletServer implements the RPC interface for the query service.
TwoPC performs 2PC metadata management (MM) functions.
TxConnection is meant for executing 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.
MySQLChecker defines the CheckMySQL interface that lower level objects can use to call back into TabletServer.

# Type aliases

Action speficies the list of actions to perform when a QueryRule is triggered.
Operator represents the list of operators.
RegisterFunction is a callback type to be called when we Register() a TabletServer.