package backoffutils
import "github.com/grpc-ecosystem/go-grpc-middleware/util/backoffutils"
Backoff Helper Utilities
Implements common backoff features.
Index ¶
Functions ¶
func JitterUp ¶
JitterUp adds random jitter to the duration.
This adds or substracts time from the duration within a given jitter fraction. For example for 10s and jitter 0.1, it will returna time within [9s, 11s])
Source Files ¶
- Version
- v1.0.0
- Published
- May 2, 2018
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 2 hours ago –
Tools for package owners.