Backoffer is interface to hold Backoff strategy
| 12 | |
| 13 | // Backoffer is interface to hold Backoff strategy |
| 14 | type Backoffer interface { |
| 15 | Backoff(int) time.Duration |
| 16 | } |
| 17 | |
| 18 | // BackoffPolicy is a default Backoffer implementation |
| 19 | type BackoffPolicy struct { |