sony / gobreaker

Circuit Breaker implemented in Go
MIT License
2.93k stars 185 forks source link

Add expiry getter #52

Open botastic opened 1 year ago

botastic commented 1 year ago

I added a simple getter for the internal expiry field. This is e.g. useful when the circuit breaker is used in the context of http servers / proxies. You could then set a meaningful value for the Retry-After header in the response.

Cheers