keyvalue

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoRecord = errors.New("record not found")
)

Functions

func NewLevelDBStore added in v1.0.2

func NewLevelDBStore(db *leveldb.DB) *levelDB

Types

type KeyValue

type KeyValue struct {
	Key   string
	Value string
}

type Store

type Store interface {
	Set(key string, value string) error
	Get(key string) (string, error)
	Delete(key string) error
	GetAllWithPrefixed(keyPrefix string) ([]KeyValue, error)
}

Directories

Path Synopsis
Package mock_keyvalue is a generated GoMock package.
Package mock_keyvalue is a generated GoMock package.

Jump to

Keyboard shortcuts

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