Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrKeyNotFound = errors.New("key not found")
)
Functions ¶
This section is empty.
Types ¶
type KVStore ¶
type KVStore interface { KVWriter BeginTransaction() Transaction }
KVStore is a key-value store that supports transactions.
type KVWriter ¶
type KVWriter interface { Get(key []byte) ([]byte, error) Set(key []byte, value []byte) error Delete(key []byte) error }
KVWriter is a subset of the KVStore interface that only allows for CRUD operations.
type Transaction ¶
Transaction is a read-write transaction on a KVStore.
Click to show internal directories.
Click to hide internal directories.