storage

package
v0.0.0-...-b40a747 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type DataStorager

type DataStorager interface {
	Bytes(key string) ([]byte, error)
	PutBytes(key string, val []byte) error
	Delete(key string) error
	Close() error
}

type MetadataStorager

type MetadataStorager interface {
	Get(key string, v interface{}) error
	Put(key string, v interface{}) error
	Delete(key string) error
	Close() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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