kvstore

package
v0.0.0-...-0b61f1f Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotExists = errors.New("Key does not exist")
	ErrTypeError = errors.New("Type error")
)

Functions

This section is empty.

Types

type KVStore

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

func NewKVStore

func NewKVStore() *KVStore

func (*KVStore) Del

func (kvs *KVStore) Del(k string)

func (*KVStore) Get

func (kvs *KVStore) Get(k string) (interface{}, bool)

func (*KVStore) GetBool

func (kvs *KVStore) GetBool(k string) (bool, error)

func (*KVStore) GetBoolWithPB

func (kvs *KVStore) GetBoolWithPB(k string) (bool, error)

func (*KVStore) GetBytes

func (kvs *KVStore) GetBytes(k string) ([]byte, error)

func (*KVStore) GetString

func (kvs *KVStore) GetString(k string) (string, error)

func (*KVStore) Set

func (kvs *KVStore) Set(k string, v interface{})

func (*KVStore) SetBool

func (kvs *KVStore) SetBool(k string, v bool)

func (*KVStore) SetBoolWithPB

func (kvs *KVStore) SetBoolWithPB(k string, v bool) error

func (*KVStore) SetBytes

func (kvs *KVStore) SetBytes(k string, v []byte)

func (*KVStore) SetString

func (kvs *KVStore) SetString(k string, v string)

Directories

Path Synopsis
proto

Jump to

Keyboard shortcuts

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