crawler

package
v0.0.0-...-7f17c66 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2018 License: BSD-3-Clause Imports: 10 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 {
	Name() string
	SleepDuration() time.Duration
	CrawlAll(ch chan *Result)
	CrawlOne(*url.URL) (repository.Repository, error)
}

func NewGitHubCrawler

func NewGitHubCrawler(l *logger.Logger, cacheRoot string, token string, ctx context.Context) (Crawler, error)

type Result

type Result struct {
	Crawler    Crawler
	Repository repository.Repository
	Exhausted  bool
	Error      error
}

Jump to

Keyboard shortcuts

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