Documentation ¶
Overview ¶
Package mapper contains the data structures for a site map, a simple directed graph, and the tooling to create one by crawling a website.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SiteMap ¶
SiteMap is the data structure in which a mapping of a website is built.
func NewSiteMap ¶
NewSiteMap returns a SiteMap initialized with the starting URL, path and the number of workers used when crawling the site. It also sets up signal handling which stops crawling for SIGTERM or SIGINT.
func (*SiteMap) MarshalJSON ¶
MarshalJSON outputs the JSON representaion of sm needed for use by sigmajs to display a site map. It implements the json.Marshaller interface.
Click to show internal directories.
Click to hide internal directories.