checks

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessibilityCheck

type AccessibilityCheck struct{}

AccessibilityCheck performs basic WCAG 2.2 automated checks.

func (*AccessibilityCheck) Name

func (c *AccessibilityCheck) Name() string

func (*AccessibilityCheck) Run

func (c *AccessibilityCheck) Run(resp *Response) []inspect.Finding

type Check

type Check interface {
	Name() string
	Run(resp *Response) []inspect.Finding
}

Check is the interface that all audit checks implement.

func AllChecks

func AllChecks() []Check

AllChecks returns all registered checks in recommended execution order.

type CookieSecurityCheck

type CookieSecurityCheck struct{}

CookieSecurityCheck audits Set-Cookie headers for security flags.

func (*CookieSecurityCheck) Name

func (c *CookieSecurityCheck) Name() string

func (*CookieSecurityCheck) Run

func (c *CookieSecurityCheck) Run(resp *Response) []inspect.Finding

type MetaTagsCheck

type MetaTagsCheck struct{}

MetaTagsCheck validates HTML meta tags for SEO and accessibility.

func (*MetaTagsCheck) Name

func (c *MetaTagsCheck) Name() string

func (*MetaTagsCheck) Run

func (c *MetaTagsCheck) Run(resp *Response) []inspect.Finding

type MixedContentCheck

type MixedContentCheck struct{}

MixedContentCheck detects http:// resources loaded on https:// pages.

func (*MixedContentCheck) Name

func (c *MixedContentCheck) Name() string

func (*MixedContentCheck) Run

func (c *MixedContentCheck) Run(resp *Response) []inspect.Finding

type Response

type Response struct {
	URL        string
	StatusCode int
	Headers    http.Header
	Body       []byte
	TLSState   *tls.ConnectionState
	CertExpiry time.Time
}

Response represents a crawled HTTP response with all data needed for checks.

type SecurityHeadersCheck

type SecurityHeadersCheck struct{}

SecurityHeadersCheck audits HTTP response headers for security best practices. Replaces: securityheaders.com

func (*SecurityHeadersCheck) Name

func (c *SecurityHeadersCheck) Name() string

func (*SecurityHeadersCheck) Run

func (c *SecurityHeadersCheck) Run(resp *Response) []inspect.Finding

type TLSCheck

type TLSCheck struct{}

TLSCheck validates TLS/SSL configuration.

func (*TLSCheck) Name

func (c *TLSCheck) Name() string

func (*TLSCheck) Run

func (c *TLSCheck) Run(resp *Response) []inspect.Finding

Jump to

Keyboard shortcuts

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