The highest tagged major version is
v3 .
Discover Packages
github.com/Jeffail/benthos
lib
util
retries
package
Version:
v0.37.1
Opens a new window with list of versions in this module.
Published: Nov 13, 2018
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package retries implements backoff strategies around a standard configuration
scheme.
type Backoff struct {
InitialInterval string `json:"initial_interval" yaml:"initial_interval"`
MaxInterval string `json:"max_interval" yaml:"max_interval"`
MaxElapsedTime string `json:"max_elapsed_time" yaml:"max_elapsed_time"`
}
Backoff contains configuration params for the exponential backoff of the
retry mechanism.
type Config struct {
MaxRetries uint64 `json:"max_retries" yaml:"max_retries"`
Backoff Backoff `json:"backoff" yaml:"backoff"`
}
Config contains configuration params for a retries mechanism.
NewConfig creates a new Config with default values.
Get returns a valid *backoff.ExponentialBackoff based on the configuration
values of Config.
GetCtor returns a constructor for a backoff.Backoff based on the
configuration values of Config.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.