type Crawler struct {
// contains filtered or unexported fields
}
Crawler is in charge of crawl a specific url received in a message.
It puts new messages in the queue when it finds new urls.
It saves images in the database.
Crawl sends a GET request to the url in the message and parses the response.
It creates new messages for new URLs in the page.
It stores images found in the page.