package
2.1.1
Repository: https://github.com/elisasre/go-common.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
MakeRequest is hihg level wrapper for http.Do with added functionality like retries and automatic response parsing.
SleepUntil waits for condition to succeeds.

# Variables

ErrTimeout is returned if SleepUntil condition isn't met.

# Structs

Backoff slices.Contains struct for retrying strategy.
ErrorResponse provides HTTP error response.
MockClient is helper client for mock tests.
Request contains all relevant data for making http requst.
Response contains basic fields extracted from http.Response.

# Interfaces

HTTPClient allows inserting either *http.Client or mock client.

# Type aliases

ConditionFunc returns true if the condition is satisfied, or an error if the loop should be aborted.