Documentation ¶
Overview ¶
Package breaker defines the standard interface for a circuit breaker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Breaker ¶
type Breaker interface { // Allow indicates if a request can be executed. It returns a function to be // called with the result of the request execution if the request is allowed, // an error otherwise. Allow(ctx context.Context) (done func(ok bool), err error) }
Breaker defines the method required for a circuit breaker.
Click to show internal directories.
Click to hide internal directories.