skiperrors

package
v0.0.0-...-e884aa9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wrap

func Wrap(db kvdb.Store, errs ...error) kvdb.Store

Wrap returns a wrapped kvdb.Store.

Types

type Snapshot

type Snapshot struct {
	// contains filtered or unexported fields
}

Snapshot is a DB snapshot.

func (*Snapshot) Get

func (f *Snapshot) Get(key []byte) ([]byte, error)

Get retrieves the given key if it's present in the key-value data store.

func (*Snapshot) Has

func (f *Snapshot) Has(key []byte) (bool, error)

Has retrieves if a key is present in the key-value data store.

func (*Snapshot) NewIterator

func (f *Snapshot) NewIterator(prefix []byte, start []byte) kvdb.Iterator

NewIterator creates a binary-alphabetical iterator over a subset of database content with a particular key prefix, starting at a particular initial key (or after, if it does not exist).

func (*Snapshot) Release

func (s *Snapshot) Release()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL