package
2.1.0-rc.2+incompatible
Repository: https://github.com/coderushing/tidb.git
Documentation: pkg.go.dev
# Functions
BindDomain binds domain to context.
GetDomain gets domain from context.
NewDomain creates a new domain.
NewInfoSyncer return new InfoSyncer.
NewSchemaChecker creates a new schema checker.
NewSchemaValidator returns a SchemaValidator structure.
# Constants
ResultFail means schemaValidator's check is fail.
ResultSucc means schemaValidator's check is passing.
ResultUnknown means schemaValidator doesn't know the check would be success or fail.
ServerInformationPath store server information such as IP, port and so on.
# Variables
ErrInfoSchemaChanged returns the error that information schema is changed.
ErrInfoSchemaExpired returns the error that information schema is out of date.
InfoSessionTTL is the etcd session's TTL in seconds.
RunAutoAnalyze indicates if this TiDB server starts auto analyze worker and can run auto analyze job.
SchemaOutOfDateRetryInterval is the backoff time before retrying.
SchemaOutOfDateRetryTimes is the max retry count when the schema is out of date.
# Structs
Domain represents a storage space.
GlobalVariableCache caches global variables.
InfoSyncer stores server info to etcd when the tidb-server starts and delete when tidb-server shuts down.
MockFailure mocks reload failed.
SchemaChecker is used for checking schema-validity.
ServerInfo is server static information.
ServerVersionInfo is the server version and git_hash.
SlowQueryInfo is a struct to record slow query info.
# Interfaces
EtcdBackend is used for judging a storage is a real TiKV.
SchemaValidator is the interface for checking the validity of schema version.