MCPcopy Index your code
hub / github.com/gosom/google-maps-scraper / ScrapeManager

Interface ScrapeManager

rqueue/rqueue.go:112–118  ·  view source on GitHub ↗

ScrapeManager is the interface that ScrapeWorker uses to interact with the scraper lifecycle and result collection.

Source from the content-addressed store, hash-verified

110// ScrapeManager is the interface that ScrapeWorker uses to interact with
111// the scraper lifecycle and result collection.
112type ScrapeManager interface {
113 JobDone()
114 SubmitJob(ctx context.Context, job scrapemate.IJob) error
115 RegisterJob(jobID string, riverJobID int64, keyword string) <-chan scraper.FlushResult
116 MarkDone(jobID string)
117 ForceFlush(jobID string)
118}
119
120type ScrapeWorker struct {
121 river.WorkerDefaults[ScrapeJobArgs]

Callers 8

WorkMethod · 0.65
WorkMethod · 0.65
WorkMethod · 0.65
RegisterJobMethod · 0.65
WorkMethod · 0.65
MarkDoneMethod · 0.65
WorkMethod · 0.65
ForceFlushMethod · 0.65

Implementers 1

ScraperManagerscraper/scraper.go

Calls

no outgoing calls

Tested by

no test coverage detected