Documentation
¶
Overview ¶
Package circuitbreaking implements the circuit breaker pattern for managing service availability and preventing cascading failures.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCircuitBroken = errors.New("service circuit broken")
ErrCircuitBroken is returned when a circuit breaker has tripped.
Functions ¶
This section is empty.
Types ¶
type CircuitBreaker ¶
CircuitBreaker tracks failures and successes to determine whether an operation should proceed.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mock provides mock implementations of the circuitbreaking package's interfaces.
|
Package mock provides mock implementations of the circuitbreaking package's interfaces. |
|
Package partitioned provides a circuit breaker that is partitioned by key.
|
Package partitioned provides a circuit breaker that is partitioned by key. |
|
mock
Package mock provides a moq-generated mock implementation of the partitioned package's KeyedCircuitBreaker interface.
|
Package mock provides a moq-generated mock implementation of the partitioned package's KeyedCircuitBreaker interface. |
Click to show internal directories.
Click to hide internal directories.