Documentation ¶
Index ¶
Constants ¶
View Source
const (
SIMPLE = "simple"
)
Variables ¶
View Source
var Impls = make(map[string]CircuitBreaker)
Functions ¶
Types ¶
type CircuitBreaker ¶
type CircuitBreakerSimple ¶
type CircuitBreakerSimple struct {
// contains filtered or unexported fields
}
func (*CircuitBreakerSimple) Check ¶
func (c *CircuitBreakerSimple) Check(key string) error
func (*CircuitBreakerSimple) Failed ¶
func (c *CircuitBreakerSimple) Failed(key string)
func (*CircuitBreakerSimple) Init ¶
func (c *CircuitBreakerSimple) Init()
func (*CircuitBreakerSimple) Succeed ¶
func (c *CircuitBreakerSimple) Succeed(key string)
Click to show internal directories.
Click to hide internal directories.