crawler

package
v1.0.4-beta Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crawler

type Crawler interface {
	Crawl()
}

Crawler interface

type MinCrawler

type MinCrawler struct {
	// contains filtered or unexported fields
}

MinCrawler minimifies images and save to distinct directory

func NewMinCrawler

func NewMinCrawler(dirs []string) *MinCrawler

NewMinCrawler creates new MinCrawler

func (*MinCrawler) Crawl

func (c *MinCrawler) Crawl()

Crawl imlementation

type RandomCrawler

type RandomCrawler struct {
	// contains filtered or unexported fields
}

RandomCrawler download random images from source

func NewRandomCrawler

func NewRandomCrawler(saveDir string, maxUsage int64, getter api.ImageGetter) *RandomCrawler

NewRandomCrawler create random crawler

func (*RandomCrawler) Crawl

func (r *RandomCrawler) Crawl()

Crawl implementation

Jump to

Keyboard shortcuts

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