package
6.8.16+incompatible
Repository: https://github.com/tencentblueking/beats.git
Documentation: pkg.go.dev

# Functions

NewEqualJitterBackoff returns a new EqualJitter object.
NewExpBackoff returns a new exponential backoff.
WaitOnError is a convenience method, if an error is received it will block, if not errors is received, the backoff will be resetted.

# Structs

EqualJitterBackoff implements an equal jitter strategy, meaning the wait time will consist of two parts, the first will be exponential and the other half will be random and will provide the jitter necessary to distribute the wait on remote endpoint.
ExpBackoff exponential backoff, will wait an initial time and exponentialy increases the wait time up to a predefined maximun.

# Interfaces

Backoff defines the interface for backoff strategies.