storage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(key string) (interface{}, bool)
	Set(key string, val interface{})
}

func New

func New(name string, options map[string]interface{}) (Cache, error)

type KV

type KV interface {
	Get(key string) (string, error)
	Set(key string, val string) error
}

func NewKV

func NewKV(name string, options map[string]interface{}) (KV, error)
type Search interface {
	Index(items []*search.Item) error
	Search(query string, options *search.Options) []*search.Result
}

func NewSearch

func NewSearch(name string, options map[string]interface{}) (Search, error)

Directories

Path Synopsis
kv
bleve
Package bleve fork from github.com/wangbin/jiebago and update bleve version
Package bleve fork from github.com/wangbin/jiebago and update bleve version

Jump to

Keyboard shortcuts

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