Documentation ¶
Index ¶
- func GetAllReporters() []*models.PageIssueReporter
- func NewAltTextReporter() *models.PageIssueReporter
- func NewBlockedByRobotstxtReporter() *models.PageIssueReporter
- func NewCanonicalMismatch() *models.PageIssueReporter
- func NewCanonicalMultipleTagsReporter() *models.PageIssueReporter
- func NewCanonicalRelativeURLReporter() *models.PageIssueReporter
- func NewDeadendReporter() *models.PageIssueReporter
- func NewDepthReporter() *models.PageIssueReporter
- func NewEmptyDescriptionReporter() *models.PageIssueReporter
- func NewEmptyTitleReporter() *models.PageIssueReporter
- func NewExternalLinkBroken() *models.PageIssueReporter
- func NewExternalLinkRedirect() *models.PageIssueReporter
- func NewExternalLinkWitoutNoFollowReporter() *models.PageIssueReporter
- func NewHTTPLinksReporter() *models.PageIssueReporter
- func NewHTTPSchemeReporter() *models.PageIssueReporter
- func NewHreflangMismatchingLang() *models.PageIssueReporter
- func NewHreflangMissingSelfReference() *models.PageIssueReporter
- func NewHreflangRelativeURL() *models.PageIssueReporter
- func NewHreflangXDefaultMissing() *models.PageIssueReporter
- func NewInternalNoFollowLinksReporter() *models.PageIssueReporter
- func NewInvalidLangReporter() *models.PageIssueReporter
- func NewLargeImageReporter() *models.PageIssueReporter
- func NewLittleContentReporter() *models.PageIssueReporter
- func NewLongAltTextReporter() *models.PageIssueReporter
- func NewLongDescriptionReporter() *models.PageIssueReporter
- func NewLongTitleReporter() *models.PageIssueReporter
- func NewMissingCSPReporter() *models.PageIssueReporter
- func NewMissingContentTypeOptionsReporter() *models.PageIssueReporter
- func NewMissingHSTSHeaderReporter() *models.PageIssueReporter
- func NewMissingLangReporter() *models.PageIssueReporter
- func NewMultipleDescriptionTagsReporter() *models.PageIssueReporter
- func NewMultipleTitleTagsReporter() *models.PageIssueReporter
- func NewNoH1Reporter() *models.PageIssueReporter
- func NewNoIndexInSitemapReporter() *models.PageIssueReporter
- func NewNoIndexableReporter() *models.PageIssueReporter
- func NewNonCanonicalInSitemapReporter() *models.PageIssueReporter
- func NewShortDescriptionReporter() *models.PageIssueReporter
- func NewShortTitleReporter() *models.PageIssueReporter
- func NewSitemapAndBlockedReporter() *models.PageIssueReporter
- func NewStatus30xReporter() *models.PageIssueReporter
- func NewStatus40xReporter() *models.PageIssueReporter
- func NewStatus50xReporter() *models.PageIssueReporter
- func NewTimeoutReporter() *models.PageIssueReporter
- func NewTooManyLinksReporter() *models.PageIssueReporter
- func NewValidHeadingsOrderReporter() *models.PageIssueReporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllReporters ¶
func GetAllReporters() []*models.PageIssueReporter
Returns an slice with all available report_manager.PageIssueReporters.
func NewAltTextReporter ¶
func NewAltTextReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function to check if a page has images with no alt attribute. The callback returns true in case the page is text/html and contains images with empty or missing alt attribute.
func NewBlockedByRobotstxtReporter ¶
func NewBlockedByRobotstxtReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the page is blocked by the robots.txt file.
func NewCanonicalMismatch ¶
func NewCanonicalMismatch() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the media type is text/html, the status code is between 200 and 299 and the page's html head canonical tag and the canonical header don't match.
func NewCanonicalMultipleTagsReporter ¶
func NewCanonicalMultipleTagsReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the media type is text/html, the status code is between 200 and 299 and the page's html head contains more than one canonical tag.
func NewCanonicalRelativeURLReporter ¶
func NewCanonicalRelativeURLReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the media type is text/html, the status code is between 200 and 299 and the page's html canonical tag is using a relative URL.
func NewDeadendReporter ¶
func NewDeadendReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the media type is text/html, the status code is between 200 and 299 and the page's html contains no internal or external links.
func NewDepthReporter ¶
func NewDepthReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that checks if a page has a high depth. The callback returns true if the page is text/html, has a 20x status code and has high depth.
func NewEmptyDescriptionReporter ¶
func NewEmptyDescriptionReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that checks if a page has an empty or missing description. It returns true if the status code is between 200 and 299, the media type is text/html and the description is not set.
func NewEmptyTitleReporter ¶
func NewEmptyTitleReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that checks if page has an empty little. The callback function returns true if the page is text/html, has a 20x status code and has an empty or missing title.
func NewExternalLinkBroken ¶
func NewExternalLinkBroken() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the media type is text/html, and contains external links with status code is greater than 399.
func NewExternalLinkRedirect ¶
func NewExternalLinkRedirect() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the media type is text/html, and contains external links with status code is between 300 and 399.
func NewExternalLinkWitoutNoFollowReporter ¶
func NewExternalLinkWitoutNoFollowReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the media type is text/html, the status code is between 200 and 299 and the page's html contains external links without the nofollow attribute.
func NewHTTPLinksReporter ¶
func NewHTTPLinksReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the media type is text/html, the status code is between 200 and 299 and the page's html contains internal links with the http scheme instead of https.
func NewHTTPSchemeReporter ¶
func NewHTTPSchemeReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that checks if page uses the http scheme instead of https. The callback function returns true has a 20x status code and uses http scheme.
func NewHreflangMismatchingLang ¶
func NewHreflangMismatchingLang() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the self-referencing hreflang lang doesn't match the page's lang.
func NewHreflangMissingSelfReference ¶
func NewHreflangMissingSelfReference() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the hreflang values don't include a self-referencing link.
func NewHreflangRelativeURL ¶
func NewHreflangRelativeURL() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the hreflang URLs are relative.
func NewHreflangXDefaultMissing ¶
func NewHreflangXDefaultMissing() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the hreflang values do not include an x-default option.
func NewInternalNoFollowLinksReporter ¶
func NewInternalNoFollowLinksReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the media type is text/html, the status code is between 200 and 299 and the page's html contains internal links with the nofollow attribute.
func NewInvalidLangReporter ¶
func NewInvalidLangReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the status code media type is text/html and the page's html language is not valid.
func NewLargeImageReporter ¶
func NewLargeImageReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function to check if the page report is a large image, in wich case it will return true.
func NewLittleContentReporter ¶
func NewLittleContentReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that checks if a page has little content. The callback returns true if the page is text/html, has a 20x status code and less than a specified amount of words.
func NewLongAltTextReporter ¶
func NewLongAltTextReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function to check if a page has images with a long alt attribute. The callback returns true in case the page is text/html and contains images with long alt attribute.
func NewLongDescriptionReporter ¶
func NewLongDescriptionReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that checks if a page has a short description. The callback function returns true if the page is text/html, has a status code between 200 and 299, and has a description of more than an specified amount of letters.
func NewLongTitleReporter ¶
func NewLongTitleReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that checks if the page has a long title. The callback function returns true if the page is text/html and has a page title longer than an specified amount of letters.
func NewMissingCSPReporter ¶
func NewMissingCSPReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that reports if the page's CSP (Content Security Policy) is missing by looking both in the Headers and meta tags. The callback returns true if the CSP does not exist.
func NewMissingContentTypeOptionsReporter ¶
func NewMissingContentTypeOptionsReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that reports if the page's X-Content-Type-Options header is missing. The callback returns true if the header does not exist.
func NewMissingHSTSHeaderReporter ¶
func NewMissingHSTSHeaderReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that reports if the page's HSTS header is missing. The callback returns true if the Strict-Transport-Security, header does not exist or is not valid.
func NewMissingLangReporter ¶
func NewMissingLangReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the status code media type is text/html and the page's html language is missing or empty.
func NewMultipleDescriptionTagsReporter ¶
func NewMultipleDescriptionTagsReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that checks if the page has more than one description meta tag in the header section. The callback returns true if the page is text/html and has more than one description in the header section.
func NewMultipleTitleTagsReporter ¶
func NewMultipleTitleTagsReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that checks if the page has more than one title tag in the header section. The callback returns true if the page is text/html and has more than one title in the header section.
func NewNoH1Reporter ¶
func NewNoH1Reporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the media type is text/html, the status code is between 200 and 299 and the page's html doesn't have any H1 tag.
func NewNoIndexInSitemapReporter ¶
func NewNoIndexInSitemapReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the pageReport is non-indexable and it is included in the sitemap.
func NewNoIndexableReporter ¶
func NewNoIndexableReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the page is not indexable by search engines.
func NewNonCanonicalInSitemapReporter ¶
func NewNonCanonicalInSitemapReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the page is non canonical and it is included in the sitemap.
func NewShortDescriptionReporter ¶
func NewShortDescriptionReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that checks if a page has a short description. The callback function returns true if the page is text/html, has a status code between 200 and 299, and has a description of less than an specified amount of letters.
func NewShortTitleReporter ¶
func NewShortTitleReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that checks if the page has a short title. The callback returns true if the page is text/html and has a page title shorter than an specified amount of letters.
func NewSitemapAndBlockedReporter ¶
func NewSitemapAndBlockedReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the page is included in the sitemap and it is also blocked by the robots.txt file.
func NewStatus30xReporter ¶
func NewStatus30xReporter() *models.PageIssueReporter
Returns a new report_manager.PageIssueReporter with a callback function that checks if the status code is in the 30x range.
func NewStatus40xReporter ¶
func NewStatus40xReporter() *models.PageIssueReporter
Returns a new report_manager.PageIssueReporter with a callback function that checks if the status code is in the 40x range.
func NewStatus50xReporter ¶
func NewStatus50xReporter() *models.PageIssueReporter
Returns a new report_manager.PageIssueReporter with a callback function that checks if the status code is greater or equal than 500.
func NewTimeoutReporter ¶
func NewTimeoutReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that checks if a web page timedout. The callback returns true if the page timed out.
func NewTooManyLinksReporter ¶
func NewTooManyLinksReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the media type is text/html, the status code is between 200 and 299 and the page's html contains too many links.
func NewValidHeadingsOrderReporter ¶
func NewValidHeadingsOrderReporter() *models.PageIssueReporter
Returns a report_manager.PageIssueReporter with a callback function that returns true if the media type is text/html, the status code is between 200 and 299 and the heading tags in the page's html doesn't have the correct order.
Types ¶
This section is empty.