Registry / utility / eapache-go-resiliency

eapache-go-resiliency

JSON →
library1.7.0gogounverified

Package go-resiliency provides patterns for resilient Go applications including retries, circuit breakers, and timeouts.

go get github.com/eapache/go-resiliency
INSTALL
IMPORT
SIG · EAPACHE-GO-RESILIE
E
eapache-go-resiliency
utilitygov1.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

resiliency
github.com/eapache/go-resiliency

Uses a retrier to retry a failing function up to 3 times.

package main import ( "fmt" "time" "github.com/eapache/go-resiliency/retrier" ) func main() { r := retrier.New(retrier.ConstantBackoff(3, 100*time.Millisecond), nil) err := r.Run(func() error { return fmt.Errorf("temporary error") }) fmt.Println(err) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.7.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
eapache-go-resiliency — go get eapache-go-resiliency · libregistry