Documentation ¶
Overview ¶
Package retries implements backoff strategies around a standard configuration scheme.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldSpecs ¶
func FieldSpecs() docs.FieldSpecs
FieldSpecs returns documentation specs for retry fields.
Types ¶
type Backoff ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.