Versions in this module Expand all Collapse all v0 v0.1.0 Jun 17, 2026 Changes in this version + const DefaultFailureThreshold + const DefaultOpenDuration + var ErrOpen = errors.New("circuit breaker open") + type Breakers struct + func New(cfg Config) *Breakers + func (m *Breakers) Allow(downstream, tool string) error + func (m *Breakers) AllowProbe(downstream string) bool + func (m *Breakers) RecordProbe(downstream string, success bool) + func (m *Breakers) RecordSuccess(downstream, tool string) + func (m *Breakers) RecordToolTimeout(downstream, tool string) + func (m *Breakers) RecordTransportFailure(downstream string) + type Config struct + FailureThreshold int + OpenDuration time.Duration