oncekv

package
v0.0.0-...-c59394f Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KV

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

KV for kv storage

func NewKV

func NewKV() (*KV, error)

NewKV returns a new kv

func (*KV) Delete

func (kv *KV) Delete(key string) error

Delete deletes the key

func (*KV) Get

func (kv *KV) Get(key string) (string, error)

Get get the value of the key

func (*KV) Put

func (kv *KV) Put(key, value string) error

Put put the key/value pair

Jump to

Keyboard shortcuts

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