link_validator

package
v0.50.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Timeout = time.Second * 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkValidator

type LinkValidator struct {
	// contains filtered or unexported fields
}

LinkValidator handles validation of URLs in service log messages

func NewLinkValidator

func NewLinkValidator() *LinkValidator

NewLinkValidator creates a new LinkValidator with default settings

func (lv *LinkValidator) ValidateLinks(message string) ([]ValidationResult, error)

ValidateLinks performs link validation through HTTP status codes

type ValidationResult

type ValidationResult struct {
	URL     string
	Warning error
}

ValidationResult holds a URL validation warning for non-fatal HTTP errors

Jump to

Keyboard shortcuts

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