ezkv

package module
v0.0.0-...-d16b3f1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source

Functions

This section is empty.

Types

type EZKV

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

func New

func New(options ...ServerOption) *EZKV

func (*EZKV) AuthMiddleware

func (k *EZKV) AuthMiddleware(r *mux.Router) mux.MiddlewareFunc

func (*EZKV) Clear

func (k *EZKV) Clear(table string) error

func (*EZKV) Data

func (k *EZKV) Data() *map[string]*btree.Tree

func (*EZKV) Delete

func (k *EZKV) Delete(table string, key string) error

func (*EZKV) Get

func (k *EZKV) Get(table string, key string) (interface{}, error)

func (*EZKV) Keys

func (k *EZKV) Keys() []map[string][]interface{}

func (*EZKV) Run

func (k *EZKV) Run() error

func (*EZKV) Set

func (k *EZKV) Set(table string, key string, value interface{})

func (*EZKV) Size

func (k *EZKV) Size() int

func (*EZKV) Values

func (k *EZKV) Values() []map[string][]interface{}

type ServerOption

type ServerOption func(*EZKV)

func WithAddress

func WithAddress(address string) ServerOption

func WithAuth

func WithAuth(token string) ServerOption

func WithPort

func WithPort(port int) ServerOption

func WithRandomAuth

func WithRandomAuth() ServerOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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