Discover Packages
github.com/jfk9w-go/flu
backoff
package
Version:
v0.11.3
Opens a new window with list of versions in this module.
Published: Apr 30, 2022
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
Const represents a fixed duration backoff strategy.
Exp provides exponential backoff `(Base * Factor ^ (retry - 1))`.
Interface is backoff strategy interface.
type Rand ¶
added in
v0.11.0
Rand implements backoff with random timeouts in [Min, Max) interval.
Retry describes a retry strategy.
Do retries the action until it succeeds or maximum retries is reached.
type Temporary interface {
IsTemporary(err error ) bool
}
Temporary checks if the provided error is temporary.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.