Registry / utility / eapache-go-resiliency-v1

eapache-go-resiliency-v1

JSON →
library1.2.0gogounverified

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

go get gopkg.in/eapache/go-resiliency.v1
INSTALL
IMPORT
SIG · EAPACHE-GO-RESILIE
E
eapache-go-resiliency-v1
utilitygov1.2.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
gopkg.in/eapache/go-resiliency.v1

Runs a function with a 1-second deadline, catching timeout errors.

package main import ( "fmt" "time" "gopkg.in/eapache/go-resiliency.v1/deadline" ) func main() { dl := deadline.New(1 * time.Second) err := dl.Run(func(stopped <-chan struct{}) error { time.Sleep(2 * time.Second) return nil }) if err == deadline.ErrTimedOut { fmt.Println("Operation timed out") } }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

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