Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DescriptionRule ¶
type DescriptionRule struct { // Description is the description of the page. Description string Errors []string }
DescriptionRule is a rule that checks if the description is present and not too long.
func (*DescriptionRule) Check ¶
func (r *DescriptionRule) Check() error
Check checks if the description is present and not too long.
type HeadingRule ¶
HeadingRule is a rule that checks if the title is present and not too long.
func (*HeadingRule) Check ¶
func (r *HeadingRule) Check() error
Check checks if the title is present and not too long.
type RobotsTXTRule ¶
func (*RobotsTXTRule) Check ¶
func (r *RobotsTXTRule) Check() error
Check checks if the robots.txt is present and not too long.
type Rule ¶
type Rule interface {
Check() error
}
func WithDescription ¶
func WithHeading ¶
func WithRobotsTXT ¶
func WithSitemap ¶
func WithStatus ¶
type Rules ¶
type Rules struct { Parsed *goquery.Document StatusCode int URL string // contains filtered or unexported fields }
Rules is a set of rules.
type SitemapRule ¶
SitemapRule is the sitemap.xml of the page.
func (*SitemapRule) Check ¶
func (r *SitemapRule) Check() error
Check checks if the robots.txt is present and not too long.
type StatusRule ¶
type StatusRule struct { // Status is the Status of the page. Status int Allowed []int Errors []string }
StatusRule is a rule that checks if the status is allowed.
func (*StatusRule) Check ¶
func (r *StatusRule) Check() error
Check checks if the status is allowed.
Click to show internal directories.
Click to hide internal directories.