Versions in this module Expand all Collapse all v1 v1.0.0 Dec 5, 2022 Changes in this version + const StateClosed + const StateHalfopen + const StateOpen + func Go(name string, run, fallback func() error) error + func Init(conf *Config) + type Breaker interface + Allow func() error + MarkFailed func() + MarkSuccess func() + type Config struct + Bucket int + K float64 + Request int64 + SwitchOff bool + Window xtime.Duration + type Group struct + func NewGroup(conf *Config) *Group + func (g *Group) Get(key string) Breaker + func (g *Group) Go(name string, run, fallback func() error) error + func (g *Group) Reload(conf *Config)