yep

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Info engines.Info = engines.Info{
	Domain:         "yep.com",
	Name:           engines.YEP,
	URL:            "https://api.yep.com/fs/2/search?",
	ResultsPerPage: 20,
}
View Source
var Support engines.SupportedSettings = engines.SupportedSettings{
	Locale:                  true,
	SafeSearch:              true,
	RequestedResultsPerPage: true,
}

Functions

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

Types

type MainContent

type MainContent struct {
	Total   int      `json:"total"`
	Results []Result `json:"results"`
}

type Result

type Result struct {
	URL       string `json:"url"`
	Title     string `json:"title"`
	TType     string `json:"type"`
	Snippet   string `json:"snippet"`
	VisualURL string `json:"visual_url"`
	FirstSeen string `json:"first_seen"`
}

type YepResponse

type YepResponse []interface{}

Jump to

Keyboard shortcuts

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