RetryRequest is a wrapper that retries failed requests if they contain a 5XX status code.
| 11 | // RetryRequest is a wrapper that retries failed requests if they contain a 5XX |
| 12 | // status code. |
| 13 | type RetryRequest struct { |
| 14 | maxRetries int |
| 15 | connection plugin.Connection |
| 16 | } |
| 17 | |
| 18 | // NewRetryRequest returns a pointer to a RetryRequest wrapper. |
| 19 | func NewRetryRequest(maxRetries int) *RetryRequest { |
nothing calls this directly
no outgoing calls
no test coverage detected