swisscows

package
v0.18.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Info = engines.Info{
	Domain:         "swisscows.com",
	Name:           engines.SWISSCOWS,
	URL:            "https://api.swisscows.com/web/search?",
	ResultsPerPage: 10,
}
View Source
var Support = engines.SupportedSettings{
	Locale: 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 SCItem

type SCItem struct {
	Id         string `json:"id"`
	Title      string `json:"title"`
	Desc       string `json:"description"`
	URL        string `json:"url"`
	DisplayURL string `json:"displayUrl"`
}

type SCResponse

type SCResponse struct {
	Items []SCItem `json:"items"`
}

Jump to

Keyboard shortcuts

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