analyzers

package
v0.0.0-...-376a21c Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTagAttribute

func GetTagAttribute(token html.Token, name string) string

GetTagAttribute function is responsible to get the value for the given tag name.

Types

type Analyzer

type Analyzer interface {

	// Analyze function analyzes the web page by the given
	// rules and outputs to the WebPageAnalyzerResponseManager.
	Analyze(schema.AnalyzerInfo, responses.WebPageAnalyzerResponseManager)
}

Analyzer interface contains the functions to be implemented to analyze web pages for given rules.

func NewHeadingAnalyzer

func NewHeadingAnalyzer() Analyzer

func NewHtmlVersionAnalyzer

func NewHtmlVersionAnalyzer() Analyzer

func NewLinkAnalyzer

func NewLinkAnalyzer(provider channels.UrlExecutorProvider) Analyzer

func NewLoginFormAnalyzer

func NewLoginFormAnalyzer() Analyzer

func NewTitleAnalyzer

func NewTitleAnalyzer() Analyzer

type LinkProperty

type LinkProperty struct {
	Url        string
	Type       LinkType
	StatusCode int
	Latency    int64
}

type LinkType

type LinkType int
const (
	Internal LinkType = iota
	External
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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