engines

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTimeoutError

func IsTimeoutError(err error) bool

func ValidateLocale

func ValidateLocale(locale string) error

Types

type DOMPaths

type DOMPaths struct {
	ResultsContainer string
	Result           string // div
	Link             string // a href
	Title            string // heading
	Description      string // paragraph
}

type Info

type Info struct {
	Name           Name
	ResultsPerPage int
	Domain         string
	URL            string
}

type Name

type Name uint8
const (
	UNDEFINED Name = iota
	BING
	BINGIMAGES
	BRAVE
	DUCKDUCKGO
	ETOOLS
	GOOGLE
	GOOGLEIMAGES
	GOOGLESCHOLAR
	MOJEEK
	PRESEARCH
	QWANT
	STARTPAGE
	SWISSCOWS
	YAHOO
	YEP
)

func Names

func Names() []Name

Returns Engine Names without UNDEFINED

func (Name) ToLower

func (n Name) ToLower() string

type Options

type Options struct {
	VisitPages    bool
	SafeSearch    bool
	Mobile        bool
	JustFirstPage bool
	Pages         Pages
	UserAgent     string
	Locale        string //format: en_US
	Category      category.Name
}

type Pages added in v0.12.0

type Pages struct {
	Start int
	Max   int
}

type SupportedSettings

type SupportedSettings struct {
	Locale                  bool
	SafeSearch              bool
	Mobile                  bool
	RequestedResultsPerPage bool
}

Jump to

Keyboard shortcuts

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