Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Scraper)
Option is a function option for the Scraper
func WithConcurrency ¶
WithConcurrency sets the concurrency level
func WithInternalOnly ¶
WithInternalOnly sets whether to only check internal links
func WithTimeout ¶
WithTimeout sets the timeout for HTTP requests
type Result ¶
type Result struct {
URL string `json:"url"`
SourceURL string `json:"source_url,omitempty"`
Status int `json:"status"`
Error string `json:"error,omitempty"`
Type string `json:"type"` // link, image, script, stylesheet, css-import
IsExternal bool `json:"is_external"`
}
Result represents a URL check result
type Results ¶
type Results struct {
BaseURL string `json:"base_url"`
Errors []Result `json:"errors"`
Successes []Result `json:"successes"`
Total int `json:"total"`
}
Results is a collection of Result
Click to show internal directories.
Click to hide internal directories.