Documentation
¶
Overview ¶
Package hq provides a way to interact with the HQv3 API and consumes, produces and mark items as finished asynchronusly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrHQAlreadyInitialized is the error returned when the postprocessor is already initialized ErrHQAlreadyInitialized = errors.New("hq client already initialized") )
Functions ¶
This section is empty.
Types ¶
type HQ ¶
type HQ struct {
HQKey string
HQSecret string
HQProject string
HQAddress string
Timeout int
GZIPRequests bool
SeencheckURL string
// contains filtered or unexported fields
}
func (*HQ) SeencheckItem ¶
SeencheckItem gets the MaxDepth children of the given item and sends a seencheck request to the crawl HQ for the URLs found. The items that were seen before will be marked as seen. A local otter cache is used to avoid sending redundant seencheck requests to HQ for URLs that have already been checked.
Click to show internal directories.
Click to hide internal directories.