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 ¶
Click to show internal directories.
Click to hide internal directories.