Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Site ¶
type Site struct { URL url.URL Links []url.URL NoFollowLinks []url.URL Scripts []url.URL Images []url.URL Videos []url.URL Audio []url.URL CSS []url.URL }
Site contains information about a site, including its URL, and the URLs of other sites it links to, scripts, and images.
func (*Site) Crawl ¶
func (s *Site) Crawl()
Crawl populates the resources of this Site instance by loading the associated link and processing the page. After processing the document, links are pushed into a channel for processing into the sitemap.
func (*Site) MarshalJSON ¶
MarshalJSON is a helper method which makes Site instances more JSON friendly.
type SiteMap ¶
SiteMap is a container for a set of URLs for assets used by the site, and a Mutex to allow safe access over go routines.
func NewSiteMap ¶
NewSiteMap is a constructor function used to return a SiteMap instance with an initialized sites map.
Click to show internal directories.
Click to hide internal directories.