Versions in this module Expand all Collapse all v0 v0.0.1 Nov 29, 2026 Changes in this version + func ValidMode(m string) bool + type Action string + const Allowed + const Blocked + const Held + type Config struct + BreakerSubjects int + BreakerWindow time.Duration + Hold time.Duration + func DefaultConfig() Config + type Decision struct + DecidedAt time.Time + Revoked bool + Rule RuleRef + Subject string + UUID string + Until time.Time + Value string + Verdict string + type Engine struct + func New(mode Mode, cfg Config) *Engine + func (e *Engine) Apply(d Decision) + func (e *Engine) Decide(m Match, now time.Time) Verdict + func (e *Engine) Mode() Mode + func (e *Engine) Pending(now time.Time) []PendingHold + func (e *Engine) Rule(ref RuleRef) (Rule, bool) + func (e *Engine) SetHold(d time.Duration) + func (e *Engine) SetMode(m Mode) + func (e *Engine) SetRules(rules []Rule) + func (e *Engine) Tripped() []RuleRef + type Match struct + HealthCheck bool + Reversible bool + Rule RuleRef + Subject string + type Mode string + const Enforce + const Guard + const Monitor + type PendingHold struct + Rule RuleRef + Subject string + Until time.Time + type Rule struct + FeedMode RuleMode + Mode RuleMode + Ref RuleRef + Verified bool + type RuleMode string + const Block + const Log + type RuleRef struct + Table string + UUID string + type Verdict struct + Action Action + HoldUntil time.Time + Reason string