kv

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: MIT Imports: 4 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
}

func New

func New(providerType ProviderType) (*KV, error)

func (*KV) GetLoader

func (kv *KV) GetLoader(script *script.Script) lua.LGFunction

func (*KV) Name

func (kv *KV) Name() string

func (*KV) Stop

func (kv *KV) Stop() error

type KVer

type KVer interface {
	Put(string, string) error
	Get(string) (string, error)
	Upsert(string, string) error
	Delete(string) error
}

type ProviderType

type ProviderType int
const (
	ProviderTypeMemory ProviderType = 0
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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