prefix

package
v1.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IteratePrefix

func IteratePrefix(dbr db.DBReader, prefix []byte) (db.Iterator, error)

IteratePrefix is a convenience function for iterating over a key domain restricted by prefix.

func NewPrefixReadWriter

func NewPrefixReadWriter(dbrw db.DBReadWriter, prefix []byte) prefixRW

NewPrefixReadWriter returns a DBReader that only has access to the subset of DB keys that contain the given prefix.

func NewPrefixReader

func NewPrefixReader(dbr db.DBReader, prefix []byte) prefixR

NewPrefixReader returns a DBReader that only has access to the subset of DB keys that contain the given prefix.

func NewPrefixWriter

func NewPrefixWriter(dbw db.DBWriter, prefix []byte) prefixW

NewPrefixWriter returns a DBWriter that reads/writes only from the subset of DB keys that contain the given prefix

Types

This section is empty.

Jump to

Keyboard shortcuts

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