URLBackoff struct implements the semantics on top of Backoff which we need for URL specific exponential backoff.
| 41 | // URLBackoff struct implements the semantics on top of Backoff which |
| 42 | // we need for URL specific exponential backoff. |
| 43 | type URLBackoff struct { |
| 44 | // Uses backoff as underlying implementation. |
| 45 | Backoff *flowcontrol.Backoff |
| 46 | } |
| 47 | |
| 48 | // NoBackoff is a stub implementation, can be used for mocking or else as a default. |
| 49 | type NoBackoff struct { |
nothing calls this directly
no outgoing calls
no test coverage detected