linkcheck

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package linkcheck handles message links checking

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	// Link URL
	URL string `json:"URL"`
	// HTTP status code
	StatusCode int `json:"StatusCode"`
	// HTTP status definition
	Status string `json:"Status"`
}

Link struct

type Response

type Response struct {
	// Total number of errors
	Errors int `json:"Errors"`
	// Tested links
	Links []Link `json:"Links"`
}

Response represents the Link check response

swagger:model LinkCheckResponse

func RunTests

func RunTests(msg *storage.Message, followRedirects bool) (Response, error)

RunTests will run all tests on an HTML string

Jump to

Keyboard shortcuts

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