kv

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Bolt added in v0.5.0

type Bolt struct {
	// contains filtered or unexported fields
}

func (*Bolt) Get added in v0.5.0

func (b *Bolt) Get(key string) ([]byte, error)

func (*Bolt) Set added in v0.5.0

func (b *Bolt) Set(key string, val []byte) error

type KV

type KV interface {
	Get(key string) ([]byte, error)
	Set(key string, value []byte) error
}

func New

func New(opts Options) (KV, error)

type Options

type Options struct {
	NS   string `validate:"required"`
	Path string `validate:"required"`
}

Jump to

Keyboard shortcuts

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