Versions in this module Expand all Collapse all v0 v0.3.5 Feb 20, 2020 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)