Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchURLWithRetries ¶
Try to fetch the given url string, and make <attempts> attempts at it. Wait for <duration> time between each try. This returns the data from the response body []byte upon successful fetch The passed URL is not validated, so validate the URL before passing to this function
func GetURLData ¶
This function validates the URL, then tries to fetch the data with retries and then reads and returns the data as []byte Returns an error if the URL is invalid, or fetching the data failed or if reading the response body fails.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.