MCPcopy
hub / github.com/redis/go-redis / GetState

Method GetState

maintnotifications/circuit_breaker.go:188–190  ·  view source on GitHub ↗

GetState returns the current state of the circuit breaker

()

Source from the content-addressed store, hash-verified

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

Callers 1

GetStatsMethod · 0.95

Calls 2

CircuitBreakerStateTypeAlias · 0.85
LoadMethod · 0.45

Tested by

no test coverage detected