Discover Packages
github.com/grpc-ecosystem/go-grpc-middleware/v2
util
backoffutils
package
Version:
v2.1.0
Opens a new window with list of versions in this module.
Published: Feb 22, 2024
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
¶
Package backoffutils 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.