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

Method Run

app/crawler/crawler.go:63–77  ·  view source on GitHub ↗

Run is the main entry point for task execution.

()

Source from the content-addressed store, hash-verified

61
62// Run is the main entry point for task execution.
63func (c *crawler) Run() {
64 c.Pipeline.Start()
65
66 done := make(chan bool)
67 go func() {
68 c.run()
69 close(done)
70 }()
71
72 c.Spider.Start()
73
74 <-done
75
76 c.Pipeline.Stop()
77}
78
79// Stop terminates the crawler and its pipeline.
80func (c *crawler) Stop() {

Callers

nothing calls this directly

Calls 3

runMethod · 0.95
StartMethod · 0.65
StopMethod · 0.65

Tested by

no test coverage detected