Documentation
¶
Index ¶
- type State
- func (s *State) Active(n string) int
- func (s *State) CircuitOpen(n string, reset time.Duration) bool
- func (s *State) Cooldown(n string, d time.Duration)
- func (s *State) Cooling(n string) bool
- func (s *State) Fails(n string) int
- func (s *State) Failure(n string, max int)
- func (s *State) Latency(n string) time.Duration
- func (s *State) LockedOut(n string) bool
- func (s *State) Lockout(n string, d time.Duration)
- func (s *State) Release(n string)
- func (s *State) ResetLockout(n string)
- func (s *State) Success(n string, lat time.Duration)
- func (s *State) Successes(n string) int
- func (s *State) TotalRequests(n string) int
- func (s *State) TryAcquire(n string, max int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) ResetLockout ¶
func (*State) TotalRequests ¶
Click to show internal directories.
Click to hide internal directories.