MCPcopy Create free account
hub / github.com/goinaction/code / searchSession

Struct searchSession

chapter7/patterns/search/search.go:24–28  ·  view source on GitHub ↗

searchSession holds information about the current search submission. It contains options, searchers and a channel down which we will receive results.

Source from the content-addressed store, hash-verified

22// It contains options, searchers and a channel down which we will receive
23// results.
24type searchSession struct {
25 searchers map[string]Searcher
26 first bool
27 resultChan chan []Result
28}
29
30// Google search will be added to the search session if this option
31// is provided.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected