prefix

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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