Documentation ¶
Index ¶
- func AllowALL(_ html.Token) bool
- func ExtractCSS(r io.Reader, h URLHandler)
- func ExtractHTML(r io.Reader, base *url.URL, cfg HTMLParams)
- func ExtractJS(r io.Reader, h URLHandler)
- func ExtractSitemap(r io.Reader, b *url.URL, h URLHandler)
- type HTMLHandler
- type HTMLParams
- type TokenFilter
- type URLHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractCSS ¶
func ExtractCSS(r io.Reader, h URLHandler)
ExtractCSS extract urls from css files.
func ExtractHTML ¶
func ExtractHTML(r io.Reader, base *url.URL, cfg HTMLParams)
ExtractHTML extract urls from html.
func ExtractSitemap ¶
func ExtractSitemap(r io.Reader, b *url.URL, h URLHandler)
ExtractSitemap extract urls from sitemap*.xml.
Types ¶
type HTMLHandler ¶
HTMLHandler is a callback for found links.
type HTMLParams ¶
type HTMLParams struct { Filter TokenFilter HandleHTML HTMLHandler HandleStatic URLHandler Brute bool ScanJS bool ScanCSS bool }
HTMLParams holds config for ExtractHTML.
type TokenFilter ¶
TokenFilter is a callback for token filtration.
Click to show internal directories.
Click to hide internal directories.