Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotAllowed = errors.New("circuitbreaker: not allowed for circuit open")
Functions ¶
This section is empty.
Types ¶
type Opt ¶ added in v0.1.10
type Opt struct {
// contains filtered or unexported fields
}
SreBreaker google sre 弹性熔断器
type Option ¶ added in v0.1.10
type Option func(*Opt)
SreBreaker google sre 弹性熔断器
func WithPolicyOption ¶ added in v0.1.14
func WithRequest ¶ added in v0.1.10
type SreBreaker ¶
type SreBreaker struct {
// contains filtered or unexported fields
}
SreBreaker google sre 弹性熔断器
func NewSreBreaker ¶
func NewSreBreaker(opts ...Option) *SreBreaker
Click to show internal directories.
Click to hide internal directories.