Fetching the contents of graph links 

The link fetcher serves as the first stage of the crawler pipeline. It operates on Payload values emitted by the input source and attempts to retrieve the contents of each link by sending out HTTP GET requests. The retrieved link web page contents are stored within the payload's RawContent field and made available to the following stages of the pipeline.

Let's now take a look at the definition of the linkFetcher type and its associated methods:

Get Hands-On Software Engineering with Golang now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.