Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct { Method string URL string Body string Depth int Headers map[string]string Tag string Attribute string RootHostname string Source string // source is the source of the request CustomFields map[string][]string // customField matched output }
Request is a navigation request for the crawler
func NewNavigationRequestURLFromResponse ¶
func NewNavigationRequestURLFromResponse(path, source, tag, attribute string, resp Response) Request
newNavigationRequestURL generates a navigation request from a relative URL
func (*Request) RequestURL ¶
RequestURL returns the request URL for the navigation
type Response ¶
type Response struct { Resp *http.Response Depth int Reader *goquery.Document Body []byte RootHostname string Options *types.CrawlerOptions }
Response is a response generated from crawler navigation
func (Response) AbsoluteURL ¶
AbsoluteURL parses the path returning a string.
It returns a blank string if the item is invalid, not in-scope or can't be formatted.
Click to show internal directories.
Click to hide internal directories.