source

package
v0.0.0-...-e478a94 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BleveIndex = iota
	QQGroup
	PlainText
)

Variables

This section is empty.

Functions

func Register

func Register(sourceType Type, c creator)

Types

type Source

type Source interface {
	Name() string
	Type() Type
	Search(key interface{}, resChan chan result.Result, wg *sync.WaitGroup)
}

func NewSource

func NewSource(name string, stype Type, info interface{}) Source

NewSource create an Source object by name and return as an Source interface

type Type

type Type int

func (Type) String

func (t Type) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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