search

package
v0.0.0-...-8efbf15 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SearchJob

type SearchJob struct {
	Params supportpublish.SupportFetcherDoc
}

type SearchResult

type SearchResult struct {
	Params *supportpublish.SupportFetcherDoc
	Err    error
}

type Searcher

type Searcher struct {
	*opensearch.Client

	Done chan struct{}
	// contains filtered or unexported fields
}

func NewSearcher

func NewSearcher(
	workers int,
	publish chan<- gjson.Result,
	osClient *opensearch.Client,
) *Searcher

func (*Searcher) Generate

func (p *Searcher) Generate(jobs []SearchJob)

func (*Searcher) Results

func (p *Searcher) Results() <-chan SearchResult

func (*Searcher) Run

func (p *Searcher) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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