go-http-tunnel/vendor/github.com/cenkalti/backoff
Michał Matczuk 10e3e0d19a go mod init
2020-02-12 17:33:50 +01:00
..
.gitignore dep: vendor dependencies 2017-11-23 17:14:33 +01:00
.travis.yml Updated Deps 2019-04-15 10:45:09 +02:00
backoff.go Updated Deps 2019-04-15 10:45:09 +02:00
context.go Updated Deps 2019-04-15 10:45:09 +02:00
exponential.go Updated Deps 2019-04-15 10:45:09 +02:00
LICENSE dep: vendor dependencies 2017-11-23 17:14:33 +01:00
README.md Updated Deps 2019-04-15 10:45:09 +02:00
retry.go Updated Deps 2019-04-15 10:45:09 +02:00
ticker.go Updated Deps 2019-04-15 10:45:09 +02:00
tries.go Updated Deps 2019-04-15 10:45:09 +02:00

Exponential Backoff GoDoc Build Status Coverage Status

This is a Go port of the exponential backoff algorithm from Google's HTTP Client Library for Java.

Exponential backoff is an algorithm that uses feedback to multiplicatively decrease the rate of some process, in order to gradually find an acceptable rate. The retries exponentially increase and stop increasing when a certain threshold is met.

Usage

See https://godoc.org/github.com/cenkalti/backoff#pkg-examples

Contributing

  • I would like to keep this library as small as possible.
  • Please don't send a PR without opening an issue and discussing it first.
  • If proposed change is not a common use case, I will probably not accept it.