presearch

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: AGPL-3.0 Imports: 12 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

func Search(ctx context.Context, query string, relay *bucket.Relay, options engines.Options, settings config.Settings, timings config.Timings) []error

Types

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