swisscows

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Info engines.Info = engines.Info{
	Domain:         "swisscows.com",
	Name:           engines.SWISSCOWS,
	URL:            "https://api.swisscows.com/web/search?",
	ResultsPerPage: 10,
	Crawlers:       []engines.Name{engines.BING},
}

Functions

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

Types

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