GetState returns the current state of the circuit breaker
()
| 186 | |
| 187 | // GetState returns the current state of the circuit breaker |
| 188 | func (cb *CircuitBreaker) GetState() CircuitBreakerState { |
| 189 | return CircuitBreakerState(cb.state.Load()) |
| 190 | } |
| 191 | |
| 192 | // GetStats returns current statistics for monitoring |
| 193 | func (cb *CircuitBreaker) GetStats() CircuitBreakerStats { |
no test coverage detected