persist

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("persist: item not found")

Functions

This section is empty.

Types

type Key

type Key []byte

func (Key) String

func (k Key) String() string

type KeyValuePair added in v0.3.0

type KeyValuePair struct {
	Key   Key
	Value []byte
}

type Saver

type Saver interface {
	io.Closer
	Put(Key, []byte) error
	PutMultiple([]KeyValuePair) error

	Get(Key) ([]byte, error)

	List() ([]Key, error)

	Delete(Key) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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