storage

package
v0.0.0-...-bede198 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ENGINE_TYPE_LUCENE = "lucene"
	ENGINE_TYPE_WUKONG = "wukong"
)

Functions

func Run

func Run()

Types

type StorageIf

type StorageIf interface {
	Add(map[string]string)
}

func OpenStorage

func OpenStorage(name string) StorageIf

type StorageLucene

type StorageLucene struct {
}

func (*StorageLucene) Add

func (sl *StorageLucene) Add(data map[string]string)

func (*StorageLucene) Search

func (sl *StorageLucene) Search(key string)

type StorageWukong

type StorageWukong struct {
}

func (*StorageWukong) Add

func (sl *StorageWukong) Add(data map[string]string)

func (*StorageWukong) Search

func (sl *StorageWukong) Search(key string)

Jump to

Keyboard shortcuts

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