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

Interface Pipeline

app/pipeline/pipeline.go:12–17  ·  view source on GitHub ↗

Pipeline collects spider results and writes them to the configured output.

Source from the content-addressed store, hash-verified

10
11// Pipeline collects spider results and writes them to the configured output.
12type Pipeline interface {
13 Start()
14 Stop()
15 CollectData(data.DataCell) result.VoidResult
16 CollectFile(data.FileCell) result.VoidResult
17}
18
19// New creates a new Pipeline for the given spider.
20func New(sp *spider.Spider, outType string, batchCap int) Pipeline {

Callers 11

runFunction · 0.65
runFunction · 0.65
runFunction · 0.65
runFunction · 0.65
DownloadMethod · 0.65
RunMethod · 0.65
ProcessMethod · 0.65
ProcessMethod · 0.65

Implementers 1

Collectorapp/pipeline/collector/collector.go

Calls

no outgoing calls

Tested by

no test coverage detected