Versions in this module Expand all Collapse all v0 v0.0.2 May 13, 2014 Changes in this version + const DefaultCooldown + const DefaultMinObservations + const DefaultWindow + var ErrCircuitOpen = errors.New("circuit open") + func DefaultResponseValidator(resp *http.Response) bool + func DefaultStatusCodeValidator(code int) bool + func Handler(breaker Breaker, validator StatusCodeValidator, next http.Handler) http.Handler + func NewBreaker(failureRatio float64) breaker + func Transport(breaker Breaker, validator ResponseValidator, next http.RoundTripper) http.RoundTripper + type Breaker interface + Allow func() bool + Failure func(time.Duration) + Success func(time.Duration) + type ResponseValidator func(*http.Response) bool + type StatusCodeValidator func(int) bool