docdb

package
v0.0.0-...-7cc01f6 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknown  = errors.New("unknown error")
	ErrFatal    = errors.New("fatal error")
	ErrNotFound = errors.New("not found error")
)

Functions

This section is empty.

Types

type DocDB

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

func NewDocDB

func NewDocDB() *DocDB

func (DocDB) Add

func (d DocDB) Add(doc map[string]any) (string, error)

func (DocDB) Get

func (d DocDB) Get(id string) (map[string]any, error)

func (DocDB) Search

func (d DocDB) Search(qs query.Queries) ([]map[string]any, error)

Jump to

Keyboard shortcuts

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