kvdb

package
v0.6.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: BlueOak-1.0.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyValueDB

type KeyValueDB interface {
	Store(k []byte, v encoding.BinaryMarshaler) error
	Close() error
	ForEach(f func(k, v []byte) error) error
	Run(context.Context)
	Delete(k []byte) error
}

func NewFileDB

func NewFileDB(filePath string, log dex.Logger) (KeyValueDB, error)

func NewMemoryDB

func NewMemoryDB() KeyValueDB

Jump to

Keyboard shortcuts

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