Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregator ¶
type Aggregator struct {
// contains filtered or unexported fields
}
Aggregator aggregates search results from multiple Searchers
func (*Aggregator) AddSearcher ¶
func (ag *Aggregator) AddSearcher(s Searcher)
AddSearcher adds a searcher to the aggregator. The caller must take care of not adding the save searcher multiple times.
type ResultFilterFunc ¶
ResultFilterFunc is used to filter a list of results
type Results ¶
type Results []*Result
Results is a slice of search results
func (*Results) Filter ¶
func (rs *Results) Filter(fun ResultFilterFunc) (out Results)
Filter creates a new results list using the filter function
type Thepiratebay ¶
type Thepiratebay struct { }
Thepiratebay is a Searcher backed by The Pirate Bay
Click to show internal directories.
Click to hide internal directories.