Versions in this module Expand all Collapse all v0 v0.2.1 May 22, 2024 Changes in this version + type Counter struct + func (counter *Counter) IsSuccess() bool + func (counter *Counter) OnFailure(config CounterConfig) (unhealthy bool, unrecovered bool, failures uint64) + func (counter *Counter) OnSuccess(config CounterConfig) (recovered bool, failures uint64) + type CounterConfig struct + Remind uint64 + Threshold uint64 + type TimedCounter struct + func (counter *TimedCounter) IsSuccess() bool + func (counter *TimedCounter) OnFailure(config TimedCounterConfig) (unhealthy bool, unrecovered bool, elapsed time.Duration) + func (counter *TimedCounter) OnSuccess(config TimedCounterConfig) (recovered bool, elapsed time.Duration) + type TimedCounterConfig struct + Remind time.Duration + Threshold time.Duration