MCPcopy
hub / github.com/andeya/pholcus / crawler

Struct crawler

app/crawler/crawler.go:28–36  ·  view source on GitHub ↗

Crawler is the core crawler engine.

Source from the content-addressed store, hash-verified

26 GetID() int // GetID returns the engine ID
27 }
28 crawler struct {
29 *spider.Spider // spider rule being executed
30 downloader.Downloader // shared downloader
31 pipeline.Pipeline // result collection and output pipeline
32 id int // engine ID
33 outType string // output type for pipeline
34 batchCap int // batch output capacity for pipeline
35 pause [2]int64 // [min request interval ms, max additional interval ms]
36 }
37)
38
39// New creates a new Crawler with the given ID, Downloader, and pipeline config.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected