kvstore

package
v0.0.0-...-b178995 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyNotFound = errors.New("key doest not exist")

Functions

This section is empty.

Types

type KvStore

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

func New

func New(c *clientutil.ClientUtil) *KvStore

func (*KvStore) Get

func (kvs *KvStore) Get(ctx context.Context, key string, version int) (*response.KeyValue, error)

func (*KvStore) Keys

func (kvs *KvStore) Keys(ctx context.Context, prefix, start, end string, limit int) ([]*response.KeyValue, error)

func (*KvStore) Put

func (kvs *KvStore) Put(ctx context.Context, key, ref string, pdata []byte, version int) (*response.KeyValue, error)

func (*KvStore) Versions

func (kvs *KvStore) Versions(ctx context.Context, key string, start, end, limit int) (*response.KeyValueVersions, error)

Jump to

Keyboard shortcuts

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