keyvalue

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 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 NewSQLStore

func NewSQLStore(dbPath string) (*sqlStore, error)

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