Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidHosts map[string]bool
ValidHosts is a map of valid URLs that are then used for inspecting the returned HTML from a HTTP GET request, and is set by the main package.
Functions ¶
Types ¶
type Page ¶
Page represents the tokenized elements of a HTML page.
func Parse ¶
func Parse(page requester.Page, instr *instrumentator.Instr) Page
Parse accepts a read http.Request body and tokenizes it. It will construct a page struct consisting of the anchors, links and scripts for the given page.
func ParseCollection ¶
func ParseCollection(pages []requester.Page, instr *instrumentator.Instr) []Page
ParseCollection concurrently parses a slice of requester.Page
Click to show internal directories.
Click to hide internal directories.