crawl

package
v0.0.0-...-703572f Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartCrawlWorker

func StartCrawlWorker(numWorkers int) (chan CrawlerAction, chan CrawlerResult)

StartRequestWorker starts a goroutine listening on its input channel, gets resources from the given url then passes the response bodies or errors via its output channel

Types

type CrawlerAction

type CrawlerAction struct {
	Url string
}

type CrawlerResult

type CrawlerResult struct {
	Url   string
	Data  []string
	Error error
}

Jump to

Keyboard shortcuts

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