Documentation
¶
Index ¶
- type Breaker
- func (breaker *Breaker) DoIfBreakerOn(ctx context.Context, d func(ctx context.Context)) bool
- func (breaker *Breaker) IsOn() bool
- func (breaker *Breaker) Off(reason string)
- func (breaker *Breaker) OffChan() <-chan struct{}
- func (breaker *Breaker) On(reason string)
- func (breaker *Breaker) OnChan() <-chan struct{}
- func (breaker *Breaker) WaitBreakerOn(ctx context.Context, d func(ctx context.Context) (doAgain bool)) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Breaker ¶
type Breaker struct {
// contains filtered or unexported fields
}
func (*Breaker) DoIfBreakerOn ¶
Click to show internal directories.
Click to hide internal directories.