Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotAllowed = errors.New(503, "CIRCUITBREAKER", "request failed due to circuit breaker triggered")
ErrNotAllowed is request failed due to circuit breaker triggered.
Functions ¶
func Client ¶
func Client(opts ...Option) middleware.Middleware
Client circuitbreaker middleware will return errBreakerTriggered when the circuit breaker is triggered and the request is rejected directly.
Types ¶
Click to show internal directories.
Click to hide internal directories.