Versions in this module Expand all Collapse all v4 v4.0.0 Jan 19, 2024 Changes in this version + type Collector interface + Failed func() + Passed func() + type Config struct + MaximumHealthyTime time.Duration + func (c *Config) Merge(other Config) + type Factory struct + CollectorConstructors []func(circuitName string) Collector + Config Config + ConfigConstructor []func(circuitName string) Config + func (r *Factory) CommandProperties(circuitName string) circuit.Config + type Tracker struct + Collectors []Collector + FailsSLOCount faststats.AtomicInt64 + MaximumHealthyTime faststats.AtomicInt64 + MeetsSLOCount faststats.AtomicInt64 + func (r *Tracker) Config() Config + func (r *Tracker) ErrBadRequest(_ context.Context, _ time.Time, _ time.Duration) + func (r *Tracker) ErrConcurrencyLimitReject(_ context.Context, _ time.Time) + func (r *Tracker) ErrFailure(_ context.Context, _ time.Time, _ time.Duration) + func (r *Tracker) ErrInterrupt(_ context.Context, _ time.Time, duration time.Duration) + func (r *Tracker) ErrShortCircuit(_ context.Context, _ time.Time) + func (r *Tracker) ErrTimeout(_ context.Context, _ time.Time, _ time.Duration) + func (r *Tracker) SetConfigThreadSafe(config Config) + func (r *Tracker) Success(_ context.Context, _ time.Time, duration time.Duration) + func (r *Tracker) Var() expvar.Var Other modules containing this package github.com/cep21/circuit github.com/cep21/circuit/v3