checker

package module
v0.0.0-...-8b8c45f Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2017 License: MIT Imports: 4 Imported by: 0

README

Codecov Go Report Card GoDoc Reference

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(address string, depth int) (err error)

Check the url

Types

type Checker

type Checker struct {
	*http.Client
	TargetURL string

	Depth int
	// contains filtered or unexported fields
}

Checker struct

func NewChecker

func NewChecker(targetURL string, depth int) (checker *Checker, err error)

NewChecker return Checker

func (*Checker) Checking

func (c *Checker) Checking() (err error)

Checking the url

type Link struct {
	Href       string
	URL        *url.URL
	Text       string
	Referers   LinkDictionary
	Status     string
	StatusCode int
	PageTitle  string
}

Link element struct

func (*Link) AddReferer

func (l *Link) AddReferer(link *Link)

AddReferer add referer to link

type LinkDictionary

type LinkDictionary map[string]*Link

LinkDictionary linkddictionary

Jump to

Keyboard shortcuts

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