checkers

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckerGroup

type CheckerGroup []models.LinkChecker

CheckerGroup ...

func (checkers CheckerGroup) CheckLink(
	ctx context.Context,
	link models.SourcedLink,
) bool

CheckLink ...

type DuplicateChecker

type DuplicateChecker struct {
	LinkRegister registers.LinkRegister
	Logger       log.Logger
}

DuplicateChecker ...

func (checker DuplicateChecker) CheckLink(
	ctx context.Context,
	link models.SourcedLink,
) bool

CheckLink ...

type HTTPClient added in v1.5.1

type HTTPClient interface {
	httputils.HTTPClient
}

HTTPClient ...

It's used only for mock generating.

type HostChecker

type HostChecker struct {
	ComparisonResult urlutils.ComparisonResult
	Logger           log.Logger
}

HostChecker ...

func (checker HostChecker) CheckLink(
	ctx context.Context,
	link models.SourcedLink,
) bool

CheckLink ...

type LinkChecker

type LinkChecker interface {
	models.LinkChecker
}

LinkChecker ...

It's used only for mock generating.

type Logger

type Logger interface {
	log.Logger
}

Logger ...

It's used only for mock generating.

type RobotsTXTChecker added in v1.5.1

type RobotsTXTChecker struct {
	UserAgent         string
	RobotsTXTRegister registers.RobotsTXTRegister
	Logger            log.Logger
}

RobotsTXTChecker ...

func (checker RobotsTXTChecker) CheckLink(
	ctx context.Context,
	link models.SourcedLink,
) bool

CheckLink ...

Jump to

Keyboard shortcuts

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