BackoffStrategy is an interface that defines a method for calculating backoff intervals.
| 154 | |
| 155 | // BackoffStrategy is an interface that defines a method for calculating backoff intervals. |
| 156 | type BackoffStrategy interface { |
| 157 | // CalculateInterval returns the time.Duration after which the next retry attempt should be made. |
| 158 | CalculateInterval() time.Duration |
| 159 | } |
| 160 | |
| 161 | // linear is a struct that implements the BackoffStrategy interface using a linear backoff strategy. |
| 162 | type linear struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…