storage

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitBerkeleyDb

func InitBerkeleyDb(dbPath string) (*berkleyDb, error)

func InitLevelDb

func InitLevelDb(dbPath string) (*levelDb, error)

Types

type DataStore

type DataStore interface {
	Write(key *[]byte, value *[]byte) error
	Read(key *[]byte) (*[]byte, error)
	ReadAll(f func(key, value *[]byte)) error
	Delete(key *[]byte) error
	Close() error
}

DataStore is an interface that facilitates operations with an underlying persistent data store.

Jump to

Keyboard shortcuts

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