bucket

package
v0.16.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSEResult

func AddSEResult(seResult *result.RetrievedResult, seName engines.Name, relay *Relay, options engines.Options, pagesCol *colly.Collector, nEnabledEngines int) bool

Checks if the retrieved result is valid. Makes a result object and adds it to the relay. Returns true if the result is valid (false otherwise).

func MakeSEImageResult added in v0.11.0

func MakeSEImageResult(
	urll, title, desc string,
	src, srcUrl, thmbUrl string,
	origH, origW, thmbH, thmbW int,
	seName engines.Name, sePage, seOnPageRank int,
	salt string,
) result.RetrievedResult

func MakeSEResult

func MakeSEResult(
	urll, title, desc string,
	seName engines.Name, sePage, seOnPageRank int,
) result.RetrievedResult

Makes result from parameters

func SetResultResponse

func SetResultResponse(link string, response *colly.Response, relay *Relay, seName engines.Name) error

Types

type Relay

type Relay struct {
	ResultMap map[string]*result.Result
	Mutex     sync.RWMutex
}

Jump to

Keyboard shortcuts

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