storage

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVS

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

func NewKVS

func NewKVS(dir string, valueDir string, logger *zap.Logger) (*KVS, error)

func (*KVS) Close

func (k *KVS) Close() error

func (*KVS) Delete

func (k *KVS) Delete(key string) error

func (*KVS) Get

func (k *KVS) Get(key string) ([]byte, error)

func (*KVS) Set

func (k *KVS) Set(key string, value []byte) error

func (*KVS) SnapshotItems

func (k *KVS) SnapshotItems() <-chan *protobuf.KeyValuePair

func (*KVS) Stats

func (k *KVS) Stats() map[string]string

Jump to

Keyboard shortcuts

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