linkscraper

package module
v0.0.0-...-87e3a05 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NonExistingPage = &Page{
		Title: "404 NOT FOUND",
	}
)

Functions

This section is empty.

Types

type Link struct {
	Title      string
	Page       *Page `json:"-"`
	TargetPage *Page `json:"-"`
	Target     string
	TargetURL  *url.URL `json:"-"`
	Internal   bool
	Anchor     bool
	Malformed  bool
	Dead       bool
}

type LinkChecker

type LinkChecker struct {
	StartPage *Page
	// contains filtered or unexported fields
}

func New

func New(startURL string) (checker *LinkChecker, err error)

func (*LinkChecker) Start

func (l *LinkChecker) Start() (err error)

func (*LinkChecker) Visited

func (l *LinkChecker) Visited() map[string]*Page

type Page

type Page struct {
	URL   *url.URL `json:"-"`
	Title string
	Links []*Link
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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