Documentation ¶
Index ¶
Constants ¶
View Source
const ( StateOpen int32 = iota StateClosed )
Variables ¶
View Source
var ErrNotAllowed = errors.New("circuitbreaker: not allowed for circuit open")
Functions ¶
This section is empty.
Types ¶
type SreBreaker ¶
type SreBreaker struct {
// contains filtered or unexported fields
}
SreBreaker google sre 弹性熔断器
func NewSreBreaker ¶
func NewSreBreaker() *SreBreaker
Click to show internal directories.
Click to hide internal directories.