Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Breaker ¶
type Breaker interface {
Success()
Fail()
Ready() bool
Reset()
}
func NewCircuitBreaker ¶
func NewNoOpBreaker ¶
func NewNoOpBreaker() Breaker
type CircuitBreaker ¶
type CircuitBreaker struct {
// contains filtered or unexported fields
}
func (*CircuitBreaker) Fail ¶
func (c *CircuitBreaker) Fail()
func (*CircuitBreaker) Ready ¶
func (c *CircuitBreaker) Ready() bool
func (*CircuitBreaker) Reset ¶
func (c *CircuitBreaker) Reset()
func (*CircuitBreaker) Success ¶
func (c *CircuitBreaker) Success()
type NoOpBreaker ¶
type NoOpBreaker struct{}
func (*NoOpBreaker) Fail ¶
func (b *NoOpBreaker) Fail()
func (*NoOpBreaker) Ready ¶
func (b *NoOpBreaker) Ready() bool
func (*NoOpBreaker) Reset ¶
func (b *NoOpBreaker) Reset()
func (*NoOpBreaker) Success ¶
func (b *NoOpBreaker) Success()
Click to show internal directories.
Click to hide internal directories.