Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCircuitBreakerOpen error = errors.New("circuit breaker is open")
ErrCircuitBreakerOpen is the error that the breaker returns when it is open
Functions ¶
This section is empty.
Types ¶
type Breaker ¶
type Breaker struct {
// contains filtered or unexported fields
}
Breaker is a type that implements the circuit breaker pattern
func NewBreaker ¶
NewBreaker returns a new Breaker with the specified tick duration and failures threshold number
Click to show internal directories.
Click to hide internal directories.