MCPcopy Index your code
hub / github.com/goinaction/code / Searcher

Interface Searcher

chapter7/patterns/search/search.go:17–19  ·  view source on GitHub ↗

Searcher declares an interface used to leverage different search engines to find results.

Source from the content-addressed store, hash-verified

15// Searcher declares an interface used to leverage different
16// search engines to find results.
17type Searcher interface {
18 Search(searchTerm string, searchResults chan<- []Result)
19}
20
21// searchSession holds information about the current search submission.
22// It contains options, searchers and a channel down which we will receive

Callers 1

SubmitFunction · 0.65

Implementers 5

googlechapter7/patterns/search/searchers.go
bingchapter7/patterns/search/searchers.go
yahoochapter7/patterns/search/searchers.go
defaultMatcherchapter2/sample/search/default.go
rssMatcherchapter2/sample/matchers/rss.go

Calls

no outgoing calls

Tested by

no test coverage detected