Documentation ¶
Index ¶
- Variables
- type EZKV
- func (k *EZKV) AuthMiddleware(r *mux.Router) mux.MiddlewareFunc
- func (k *EZKV) Clear(table string) error
- func (k *EZKV) Data() *map[string]*btree.Tree
- func (k *EZKV) Delete(table string, key string) error
- func (k *EZKV) Get(table string, key string) (interface{}, error)
- func (k *EZKV) Keys() []map[string][]interface{}
- func (k *EZKV) Run() error
- func (k *EZKV) Set(table string, key string, value interface{})
- func (k *EZKV) Size() int
- func (k *EZKV) Values() []map[string][]interface{}
- type ServerOption
Constants ¶
This section is empty.
Variables ¶
View Source
var Banner = `` /* 646-byte string literal not displayed */
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
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
Click to show internal directories.
Click to hide internal directories.