Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckStatus ¶
CheckStatus returns error if the status is not 200 OK.
func RetryRequest ¶
func RetryRequest(ctx context.Context, client *http.Client, req *http.Request, returnChan chan error) (resp *http.Response, retErr error)
RetryRequest attempts a request on the client repeatedly until it succeeds or the context is canceled. It will retry for time.Duration and back off slowly over several polls. If a channel is provided, it will return to the channel when the operation succeeds with any error if relevant, but only calling it sync will return the response.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.