kv_service

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (sdk.KeyValueService, error)

New - Create a new dev KV plugin

func NewWithDB

func NewWithDB(db ScribbleIface) (sdk.KeyValueService, error)

Types

type DevKVService

type DevKVService struct {
	sdk.UnimplementedKeyValuePlugin
	// contains filtered or unexported fields
}

func (*DevKVService) Delete

func (s *DevKVService) Delete(collection string, key string) error

func (*DevKVService) Get

func (s *DevKVService) Get(collection string, key string) (map[string]interface{}, error)

func (*DevKVService) Put

func (s *DevKVService) Put(collection string, key string, value map[string]interface{}) error

type ScribbleIface

type ScribbleIface interface {
	Read(string, string, interface{}) error
	ReadAll(string) ([]string, error)
	Write(string, string, interface{}) error
	Delete(string, string) error
}

Jump to

Keyboard shortcuts

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