package
2.0.0-20230315033327-439aceb4cc96
Repository: https://github.com/ergesun/client-go.git
Documentation: pkg.go.dev
# Functions
BuildKeyspaceName builds a keyspace name.
DecodeKey split a key to it's keyspace prefix and actual key.
IsDecodeError is used to determine if error is decode error.
NewCodecV1 returns a codec that can be used to encode/decode keys and requests to and from APIv1 format.
NewCodecV2 returns a codec that can be used to encode/decode keys and requests to and from APIv2 format.
ParseKeyspaceID retrieves the keyspaceID from the given keyspace-encoded key.
# Constants
ModeRaw represent a raw operation in TiKV.
ModeTxn represent a transaction operation in TiKV.
NulSpaceID is a special keyspace id that represents no keyspace exist.
# Variables
DefaultKeyspaceID is the keyspaceID of the default keyspace.
DefaultKeyspaceName is the name of the default keyspace.
# Interfaces
Codec is responsible for encode/decode requests.