Documentation
¶
Index ¶
- Constants
- type ArXiv
- type Baidu
- type BingEngine
- type Brave
- type DuckDuckGo
- type GitHub
- type Google
- type HackerNews
- type Mojeek
- type OpenStreetMap
- type PubMed
- type QwantEngine
- type Reddit
- type Registry
- func (r *Registry) Count() int
- func (r *Registry) Get(name string) (search.Engine, error)
- func (r *Registry) GetAll() []search.Engine
- func (r *Registry) GetByNames(names []string) []search.Engine
- func (r *Registry) GetEnabled() []search.Engine
- func (r *Registry) GetForCategory(category model.Category) []search.Engine
- func (r *Registry) Register(engine search.Engine)
- type StackOverflow
- type Startpage
- type WikipediaEngine
- type WolframAlpha
- type Yahoo
- type Yandex
- type YouTube
Constants ¶
const UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0"
UserAgent is the standard User-Agent string for all search engine requests. Windows 11 Edge - consistent across all engines for privacy and compatibility.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArXiv ¶
type ArXiv struct {
*search.BaseEngine
// contains filtered or unexported fields
}
ArXiv implements the arXiv search engine for scientific papers
type Baidu ¶
type Baidu struct {
*search.BaseEngine
// contains filtered or unexported fields
}
Baidu implements Baidu search engine
type BingEngine ¶
type BingEngine struct {
*search.BaseEngine
// contains filtered or unexported fields
}
BingEngine implements Bing search
type Brave ¶
type Brave struct {
*search.BaseEngine
// contains filtered or unexported fields
}
Brave implements Brave Search engine
type DuckDuckGo ¶
type DuckDuckGo struct {
*search.BaseEngine
// contains filtered or unexported fields
}
DuckDuckGo implements DuckDuckGo search engine
type GitHub ¶
type GitHub struct {
*search.BaseEngine
// contains filtered or unexported fields
}
GitHub implements GitHub search engine
type Google ¶
type Google struct {
*search.BaseEngine
// contains filtered or unexported fields
}
Google implements Google search engine
type HackerNews ¶
type HackerNews struct {
*search.BaseEngine
// contains filtered or unexported fields
}
HackerNews implements Hacker News search engine using the Algolia API
func NewHackerNews ¶
func NewHackerNews() *HackerNews
NewHackerNews creates a new Hacker News search engine
type Mojeek ¶
type Mojeek struct {
*search.BaseEngine
// contains filtered or unexported fields
}
Mojeek implements Mojeek search engine Mojeek is a privacy-focused search engine with its own crawler
type OpenStreetMap ¶
type OpenStreetMap struct {
*search.BaseEngine
// contains filtered or unexported fields
}
OpenStreetMap implements OpenStreetMap/Nominatim search engine Uses the Nominatim API for geocoding and location search
func NewOpenStreetMap ¶
func NewOpenStreetMap() *OpenStreetMap
NewOpenStreetMap creates a new OpenStreetMap search engine
type PubMed ¶
type PubMed struct {
*search.BaseEngine
// contains filtered or unexported fields
}
PubMed implements PubMed search engine using NCBI E-utilities API
type QwantEngine ¶
type QwantEngine struct {
*search.BaseEngine
}
func NewQwantEngine ¶
func NewQwantEngine() *QwantEngine
type Reddit ¶
type Reddit struct {
*search.BaseEngine
// contains filtered or unexported fields
}
Reddit implements Reddit search engine
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry holds all available search engines
func DefaultRegistry ¶
func DefaultRegistry() *Registry
DefaultRegistry creates and returns a registry with default engines
func (*Registry) GetByNames ¶
GetByNames returns engines by their names
func (*Registry) GetEnabled ¶
GetEnabled returns all enabled engines
func (*Registry) GetForCategory ¶
GetForCategory returns all engines that support a category
type StackOverflow ¶
type StackOverflow struct {
*search.BaseEngine
// contains filtered or unexported fields
}
StackOverflow implements Stack Overflow search engine
func NewStackOverflow ¶
func NewStackOverflow() *StackOverflow
NewStackOverflow creates a new Stack Overflow search engine
type Startpage ¶
type Startpage struct {
*search.BaseEngine
// contains filtered or unexported fields
}
Startpage implements Startpage Search engine
func NewStartpageEngine ¶
func NewStartpageEngine() *Startpage
NewStartpageEngine creates a new Startpage search engine
type WikipediaEngine ¶
type WikipediaEngine struct {
*search.BaseEngine
}
func NewWikipediaEngine ¶
func NewWikipediaEngine() *WikipediaEngine
type WolframAlpha ¶
type WolframAlpha struct {
*search.BaseEngine
// contains filtered or unexported fields
}
WolframAlpha implements Wolfram Alpha search engine Uses the Short Answers API for computational queries
func NewWolframAlpha ¶
func NewWolframAlpha() *WolframAlpha
NewWolframAlpha creates a new Wolfram Alpha search engine
type Yahoo ¶
type Yahoo struct {
*search.BaseEngine
// contains filtered or unexported fields
}
Yahoo implements Yahoo search engine
type Yandex ¶
type Yandex struct {
*search.BaseEngine
// contains filtered or unexported fields
}
Yandex implements Yandex search engine
type YouTube ¶
type YouTube struct {
*search.BaseEngine
// contains filtered or unexported fields
}
YouTube implements YouTube Search engine
func NewYouTubeEngine ¶
func NewYouTubeEngine() *YouTube
NewYouTubeEngine creates a new YouTube search engine