NewRetryRequest returns a pointer to a RetryRequest wrapper.
(maxRetries int)
| 15 | |
| 16 | // NewRetryRequest returns a pointer to a RetryRequest wrapper. |
| 17 | func NewRetryRequest(maxRetries int) *RetryRequest { |
| 18 | return &RetryRequest{ |
| 19 | maxRetries: maxRetries, |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | // Wrap sets the connection in the RetryRequest and returns itself. |
| 24 | func (retry *RetryRequest) Wrap(innerconnection cfnetworking.Connection) cfnetworking.Connection { |
no outgoing calls
no test coverage detected