Circuit breaker¶
-
class
ahoyhoy.circuit.
Circuit
[source]¶ Simple base class to handle the transition between closed and open circuit states.
-
class
ahoyhoy.circuit.
OpenState
[source]¶ Bases:
ahoyhoy.circuit.circuit.State
Circut in an open state. Opening as well as all other methods will throw RuntimeError.
-
class
ahoyhoy.circuit.
ClosedState
[source]¶ Bases:
ahoyhoy.circuit.circuit.State
Circuit in a closed state. Closing will throw RuntimeError.