skiperrors

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 1 Imported by: 2

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 added in v0.1.2

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

Snapshot is a DB snapshot.

func (*Snapshot) Get added in v0.1.2

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 added in v0.1.2

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

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

func (*Snapshot) NewIterator added in v0.1.2

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 added in v0.1.2

func (s *Snapshot) Release()

Jump to

Keyboard shortcuts

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