Documentation ¶
Index ¶
- type KVStore
- func (s *KVStore) Backup(ctx context.Context, w io.Writer) error
- func (s *KVStore) Cursor(hints ...kv.CursorHint) (kv.Cursor, error)
- func (s *KVStore) Delete(key []byte) error
- func (s *KVStore) ForwardCursor(seek []byte, opts ...kv.CursorOption) (kv.ForwardCursor, error)
- func (s *KVStore) Get(key []byte) ([]byte, error)
- func (s *KVStore) GetBatch(keys ...[]byte) (values [][]byte, err error)
- func (s *KVStore) Put(key, value []byte) error
- func (s *KVStore) RLock()
- func (s *KVStore) RUnlock()
- func (s *KVStore) Restore(ctx context.Context, r io.Reader) error
- func (s *KVStore) Update(ctx context.Context, f func(kv.Tx) error) error
- func (s *KVStore) View(ctx context.Context, f func(kv.Tx) error) error
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVStore ¶
type KVStore struct {
// contains filtered or unexported fields
}
func (*KVStore) ForwardCursor ¶
func (s *KVStore) ForwardCursor(seek []byte, opts ...kv.CursorOption) (kv.ForwardCursor, error)
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
Tx is an in memory transaction. TODO: make transactions actually transactional
func (*Tx) WithContext ¶
Click to show internal directories.
Click to hide internal directories.