Discover Packages
github.com/grpc-ecosystem/go-grpc-middleware/v2
util
backoffutils
package
Version:
v2.0.0-rc.1
Opens a new window with list of versions in this module.
Published: Jun 3, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
Backoff Helper Utilities
Implements common backoff features.
ExponentBase2 computes 2^(a-1) where a >= 1. If a is 0, the result is 0.
JitterUp adds random jitter to the duration.
This adds or subtracts time from the duration within a given jitter fraction.
For example for 10s and jitter 0.1, it will return a time within [9s, 11s])
Source Files
¶
Click to show internal directories.
Click to hide internal directories.