Discover Packages
github.com/donetkit/contrib-gin
grpc_middleware
util
backoffutils
package
Version:
v0.4.1
Opens a new window with list of versions in this module.
Published: Oct 8, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
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.