Skip to content

Commit 5b46766

Browse files
committed
doc: add docs
1 parent 5bb4bc4 commit 5b46766

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

plugin/ratelimiter/bbr/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,12 @@ func (l *BBR) maxInFlight() int64 {
4444
- `l.minRT()` 为 单个采样窗口中最小的响应时间
4545
- 0.5为向上取整
4646
- 则上述公式表示每毫秒能同时处理的最多请求数。用当前并发请求数 `inFlight` 与计算值比较,判断是否触发限流
47+
48+
## 代码结构
49+
```go
50+
├── core BBR核心算法实现
51+
├── cpu CPU使用率采集相关实现
52+
├── window 滑动窗口相关实现
53+
├── bucket.go 实现 `QuotaBucket` 接口
54+
├── plugin.go 实现 `Plugin` 接口
55+
```

0 commit comments

Comments
 (0)