crawler

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Crawler config.CheckType = "crawler"

Variables

This section is empty.

Functions

func RegisterChecks

func RegisterChecks()

Types

type CrawlerCheck

type CrawlerCheck struct {
	config.CheckBase `yaml:",inline"`
	Domain           string   `yaml:"domain"`
	ExtraDomains     []string `yaml:"extra_domains"`
	IncludeURLs      []string `yaml:"include_urls"`
	Limit            int      `yaml:"limit"`
}

CrawlerCheck is a lightweight crawler that can be used to determine health of the project.

func (*CrawlerCheck) Merge

func (c *CrawlerCheck) Merge(mergeCheck config.Check) error

Merge implementation for file check.

func (*CrawlerCheck) RunCheck

func (c *CrawlerCheck) RunCheck()

RunCheck gathers input configuration and prepares the colly crawler to make HTTP requests to the project.

@see https://github.com/gocolly/colly/tree/master/_examples

Jump to

Keyboard shortcuts

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