storage

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyNotFoundError

func KeyNotFoundError(key []byte) error

KeyNotFoundError returns an error for key-not-found

Types

type IterationFunc

type IterationFunc func([]byte, []byte) error

IterationFunc defines an interface to a callback function for LoadAndIterate()

type Storage

type Storage interface {
	Get([]byte) ([]byte, error)
	Load(string) error
	LoadAndIterate(string, IterationFunc) error
}

Storage defines an interface to a storage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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