presearch

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Info = engines.Info{
	Domain:         "presearch.com",
	Name:           engines.PRESEARCH,
	URL:            "https://presearch.com/search?q=",
	ResultsPerPage: 10,
}
View Source
var Support = engines.SupportedSettings{
	SafeSearch: true,
}

Functions

This section is empty.

Types

type Engine added in v0.14.1

type Engine struct{}

func New added in v0.14.1

func New() Engine

func (Engine) Search added in v0.14.1

func (e Engine) Search(ctx context.Context, query string, relay *bucket.Relay, options engines.Options, settings config.Settings, timings config.CategoryTimings, salt string, nEnabledEngines int) []error

type PresearchResponse

type PresearchResponse struct {
	Results struct {
		StandardResults []Result `json:"standardResults"`
	} `json:"results"`
}

type Result

type Result struct {
	Title   string `json:"title"`
	Link    string `json:"link"`
	Desc    string `json:"description"`
	Favicon string `json:"favicon"`
}

Jump to

Keyboard shortcuts

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