package
Version:
v0.1.14
Opens a new window with list of versions in this module.
Published: Apr 15, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
kratos
: https://github.com/go-kratos/kratos/blob/main/middleware/circuitbreaker/circuitbreaker.go
sre
: https://github.com/go-kratos/aegis/tree/main/circuitbreaker/sre
window
: https://github.com/go-kratos/aegis/tree/main/pkg/window
Documentation
¶
func NewWindow(size int) *window
type Breaker interface {
Allow() (bool, error)
}
type Option func(*options)
type RollingPolicy struct {
}
RollingPolicy 滑块
Reduce 统计所有的采集完整的桶, 当前这个桶和跳过的桶不计算
Source Files
¶
Click to show internal directories.
Click to hide internal directories.