downloader

package
v0.0.0-...-75cde0a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Store(*goscrapy.Response) error
	Load(*goscrapy.Request) (*goscrapy.Response, error)
}

Cache cache

type ChromeDownloader

type ChromeDownloader struct {
	sync.Mutex
	// contains filtered or unexported fields
}

ChromeDownloader downloader based on chrome.

func NewChromeDownloader

func NewChromeDownloader(cfg chrome.Config) (*ChromeDownloader, error)

NewChromeDownloader creates a downloader instance.

func (*ChromeDownloader) Download

func (cd *ChromeDownloader) Download(req *goscrapy.Request) (*goscrapy.Response, error)

Download downloads

func (*ChromeDownloader) SetCache

func (cd *ChromeDownloader) SetCache(c Cache)

SetCache set cache

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL