MCPcopy
hub / github.com/hu17889/go_spider / Downloader

Interface Downloader

core/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(req *request.Request) *page.Page
14}

Callers 4

TestDownloadHtmlFunction · 0.95
TestDownloadJsonFunction · 0.95
TestCharSetChangeFunction · 0.95
pageProcessMethod · 0.65

Implementers 1

HttpDownloadercore/downloader/downloader_http.go

Calls

no outgoing calls

Tested by

no test coverage detected