Documentation ¶
Index ¶
- Variables
- func BatchGetValues(txn Transaction, keys [][]byte) (map[string][]byte, error)
- func IsConflictError(err error) bool
- func IsErrNotFound(err error) bool
- func IsRetryableError(err error) bool
- func LockKeys(txn Transaction, keys [][]byte) error
- func RunInNewTxn(store Storage, retryable bool, f func(txn kv.Transaction) error) error
- type Iterator
- type Storage
- type Transaction
Constants ¶
This section is empty.
Variables ¶
View Source
var MockAddr = "mocktikv://"
MockAddr default mock tikv addr
Functions ¶
func BatchGetValues ¶
func BatchGetValues(txn Transaction, keys [][]byte) (map[string][]byte, error)
BatchGetValues issue batch requests to get values
func IsConflictError ¶
func IsErrNotFound ¶
IsErrNotFound checks if err is a kind of NotFound error.
func IsRetryableError ¶
IsRetryableError checks if err is a kind of RetryableError error.
func LockKeys ¶
func LockKeys(txn Transaction, keys [][]byte) error
LockKeys tries to lock the entries with the keys in KV store.
func RunInNewTxn ¶
Types ¶
type Transaction ¶
type Transaction kv.Transaction
Transaction defines the interface for operations inside a Transaction.
Click to show internal directories.
Click to hide internal directories.