checker

package
v0.0.0-...-36b92fc Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	LRU *lru.Cache[string, Result]
	// Results chan Result
	Pool  *pond.WorkerPool
	Tasks chan Task
}

func InitChecker

func InitChecker() *Checker

func (*Checker) Start

func (c *Checker) Start()

type Result

type Result struct {
	URL       string
	Status    string
	Error     error
	CreatedAt time.Time
	Checks    []string
}

type Task

type Task struct {
	URL   string
	Force bool
}

Jump to

Keyboard shortcuts

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