package
2.1.0-rc.2+incompatible
Repository: https://github.com/coderushing/tidb.git
Documentation: pkg.go.dev
# Functions
NewBackoffer creates a Backoffer with maximum sleep time(in ms).
NewBackoffFn creates a backoff func which implements exponential backoff with optional jitters.
NewDeleteRangeTask creates a DeleteRangeTask.
NewEtcdSafePointKV creates an instance of EtcdSafePointKV.
NewLock creates a new *Lock.
NewLockResolver creates a LockResolver.
NewMockSafePointKV creates an instance of MockSafePointKV.
NewRawKVClient creates a client with PD cluster addrs.
NewRegionCache creates a RegionCache.
NewRegionRequestSender creates a new sender.
NewTestTiKVStore creates a test store with Option.
SplitRegionRanges get the split ranges from pd region.
# Constants
Back off types.
Back off types.
Back off types.
DecorrJitter increases the maximum jitter based on the last random value.
EqualJitter is also randomized, but prevents very short sleeps.
FullJitter applies random factors to strict exponential.
Maximum total sleep time(in ms) for kv/cop commands.
Maximum total sleep time(in ms) for kv/cop commands.
Safe point constants.
This is almost the same as 'tikv_gc_safe_point' in the table 'mysql.tidb', save this to pd instead of tikv, because we can't use interface of table if the safepoint on tidb is expired.
Timeout durations.
NoJitter makes the backoff sequence strict exponential.
For requests that may need scan region multiple times.
For requests that may need scan region.
ResolvedCacheSize is max number of cached txn status.
Timeout durations.
# Variables
CommitMaxBackoff is max sleep time of the 'commit' command.
ErrBodyMissing response body is missing error.
MySQL error instances.
ErrMaxScanLimitExceeded is returned when the limit for rawkv Scan is to large.
MySQL error instances.
MySQL error instances.
MySQL error instances.
MySQL error instances.
MySQL error instances.
GrpcKeepAliveTime is the duration of time after which if the client doesn't see any activity it pings the server to see if the transport is still alive.
GrpcKeepAliveTimeout is the duration of time for which the client waits after having pinged for keepalive check and if no activity is seen even after that the connection is closed.
MaxCallMsgSize set max gRPC receive message size received from server.
MaxConnectionCount is the max gRPC connections that will be established with each tikv-server.
MaxRawKVScanLimit is the maximum scan limit for rawkv Scan.
MaxSendMsgSize set max gRPC request message size sent to server.
NewGCHandlerFunc creates a new GCHandler.
# Structs
Backoffer is a utility for retrying queries.
CachedRegion encapsulates {Region, TTL}.
CopClient is coprocessor client.
DeleteRangeTask is used to delete all keys in a range.
Driver implements engine Driver.
EtcdSafePointKV implements SafePointKV at runtime.
KeyLocation is the region and range that a key is located.
Lock represents a lock from tikv server.
LockResolver resolves locks and also caches resolved txn status.
MockSafePointKV implements SafePointKV at mock test.
RawKVClient is a client of TiKV server which is used as a key-value storage, only GET/PUT/DELETE commands are supported.
Region stores region's meta and its leader peer.
RegionCache caches Regions loaded from PD.
RegionRequestSender sends KV/Cop requests to tikv server.
RegionVerID is a unique ID that can identify a Region at a specific version.
RPCContext contains data that is needed to send RPC to a region.
Scanner support tikv scan.
Store contains a tikv server's address.
# Interfaces
Client is a client that sends RPC.
GCHandler runs garbage collection job.
SafePointKV is used for a seamingless integration for mockTest and runtime.
Storage represent the kv.Storage runs on TiKV.
# Type aliases
TxnStatus represents a txn's final status.