kv

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotExist = errors.New("not exist")
)

Functions

This section is empty.

Types

type KV

type KV struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New() *KV

func (*KV) Close

func (a *KV) Close() error

func (*KV) Del

func (a *KV) Del(k string) error

func (*KV) Get

func (a *KV) Get(k string, buf *bytes.Buffer) ([]byte, error)

func (*KV) Range

func (a *KV) Range() ([]string, [][]byte)

func (*KV) Set

func (a *KV) Set(k string, v []byte) error

Jump to

Keyboard shortcuts

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