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

Interface Downloader

app/downloader/downloader.go:12–14  ·  view source on GitHub ↗

The Downloader interface. You can implement the interface by implement function Download. Function Download need to return Page instance pointer that has request result downloaded from Request.

Source from the content-addressed store, hash-verified

10// You can implement the interface by implement function Download.
11// Function Download need to return Page instance pointer that has request result downloaded from Request.
12type Downloader interface {
13 Download(*spider.Spider, *request.Request) *spider.Context
14}

Callers

nothing calls this directly

Implementers 10

Surferapp/downloader/downloader_surfer.go
Chromeapp/downloader/surfer/chrome.go
Surfapp/downloader/surfer/surf.go
ChromeStubapp/downloader/surfer/chrome_stub.go
PhantomStubapp/downloader/surfer/phantom_stub.go
Phantomapp/downloader/surfer/phantom.go
mockSurferapp/aid/proxy/proxy_test.go
errorDownloaderapp/crawler/crawler_test.go
successDownloaderapp/crawler/crawler_test.go
mockDownloaderapp/crawler/crawlerpool_test.go

Calls

no outgoing calls

Tested by

no test coverage detected