plugin

package
v0.0.0-...-9c7057b Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TYPE_ANALYSIS int8 = iota
	TYPE_RERANK
)

Variables

This section is empty.

Functions

func Analyze

func Analyze(args *xsearchpb.QueryAnalysisArgs) error

func Cleanup

func Cleanup() error

func Register

func Register(p Plugin) error

func Rerank

func Rerank(args *xsearchpb.RerankArgs) error

Types

type Plugin

type Plugin interface {
	Init() error
	Type() int8
	Name() string
	Priority() int8
	Analyze(args *xsearchpb.QueryAnalysisArgs) error
	Rerank(args *xsearchpb.RerankArgs) error
	Cleanup() error
}

func Get

func Get(name string) (Plugin, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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