checker

package
v0.0.0-...-13396ff Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckResult

type CheckResult struct {
	sync.RWMutex
	Checked map[string]*result `json:"checked"`
}

CheckResult is the result of a full check performed

type Checker

type Checker interface {
	Run() (*CheckResult, error)
}

Checker describes the interface to be fullfiled to implement a valid checker

func New

func New(o *Options) Checker

New instantiates a new Checker using options

type Options

type Options struct {
	Workers                       int
	IgnoreRegexps                 []*regexp.Regexp
	URLs                          []string
	InspectExternal               bool
	StructuredDataCheckWithYandex bool
	YandexAPIKey                  string
}

Options is a list of options to start a Checker

type ResultStructuredData

type ResultStructuredData struct {
	Content string                      `json:"content"`
	Yandex  *validator.StandardResponse `json:"yandex"`
}

ResultStructuredData stores multiple informations regarding structured data validation

Jump to

Keyboard shortcuts

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