jobs

package
v0.0.0-...-099dad8 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDNSJob

func CreateDNSJob(url *url.URL, resolverAddress net.IP, resolverPort uint16) (*pipeline.Job, error)

CreateDNSJob fetches a hostname's A record and creates the record.

func CreateHTTPJob

func CreateHTTPJob(url *url.URL, userAgent string) *pipeline.Job

CreateHTTPJob performs a HTTP GET request and returns the corresponding records.

func CreateRenderJob

func CreateRenderJob(url *url.URL, quality int) *pipeline.Job

CreateRenderJob creates a render of the site.

func CreateRobotsJob

func CreateRobotsJob(target *url.URL, userAgent string) (*pipeline.Job, error)

CreateRobotsJob fetches the Robots TXT file.

func CreateScrapeJob

func CreateScrapeJob(payload *HTTPResponsePayload) *pipeline.Job

CreateScrapeJob extracts URLs in use by the target.

Types

type HTTPRequestPayload

type HTTPRequestPayload struct {
	warc.RawPayload
	Request *http.Request
}

HTTPRequestPayload is the payload of a HTTP request.

type HTTPResponsePayload

type HTTPResponsePayload struct {
	warc.RawPayload
	Response *http.Response
}

HTTPResponsePayload is the payload of a HTTP response.

Jump to

Keyboard shortcuts

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