engines

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 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 {
	Domain         string
	Name           Name
	URL            string
	ResultsPerPage int
}

type Name

type Name uint8
const (
	UNDEFINED Name = iota
	BING
	BRAVE
	DUCKDUCKGO
	ETOOLS
	GOOGLE
	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 {
	MaxPages      int
	VisitPages    bool
	Category      category.Name
	UserAgent     string
	Locale        string //format: en_US
	SafeSearch    bool
	Mobile        bool
	JustFirstPage bool
}

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