Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MaxNumOfFailingRequests ... MaxNumOfFailingRequests = 10 // FailingRatio ... FailingRatio = 0.6 )
Functions ¶
func NewCircuitBreaker ¶
func NewCircuitBreaker() *gobreaker.CircuitBreaker
NewCircuitBreaker is a factory function returning a *gobreaker.CircuitBreaker with a default state-changing function that activates if the overall number of failing requests have reached a tweakable MaxNumOfFailingRequests cap and the failing ratio has met the FailingRatio.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.