handler

package
v0.0.0-...-0547504 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(w http.ResponseWriter, r *http.Request)

Handler is the main HTTP handler for the application

Types

type DownloadData

type DownloadData struct {
	URL string
}

DownloadData holds the data for download template

type PageResult

type PageResult struct {
	URL             string
	Count           int
	Title           string
	StatusCode      int
	WordCount       int
	InternalLinks   int
	ExternalLinks   int
	ImagesCount     int
	HasH1           bool
	H1Count         int
	HasMeta         bool
	HasCanonical    bool
	CanonicalURL    string
	MetaDescription string
}

PageResult represents a single page with link count and SEO data

type ResultsData

type ResultsData struct {
	BaseURL     string
	Concurrency int
	MaxPages    int
	PageCount   int
	Results     []PageResult
	Error       string
}

ResultsData holds the data to be passed to the results template

Jump to

Keyboard shortcuts

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