github.com/segmentio/backoff
Package backoff implements backoff algorithms for retrying operations. Also has a Retry() helper for retrying operations that may fail. This is an example that demonstrates how this package could be used to perform various advanced operations. It executes an HTTP GET request with exponential backoff, while errors are logged and failed responses are closed, as required by net/http package. Note we define a condition function which is used inside the operation to determine whether the operation succeeded or failed.
Ecosystem
proxy.golang.org
proxy.golang.org
Versions
0
0
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/segmentio/backoff
spec |
| License | MIT |
| Namespace | github.com/segmentio |
| Last Synced | 2 days ago |
Rankings on proxy.golang.org
Overall
Top 5.2%