简单的中间件来限制HTTP请求的速率。-Golang开发

时间:2021-05-26 14:31:18
【文件属性】:
文件名称:简单的中间件来限制HTTP请求的速率。-Golang开发
文件大小:22KB
文件格式:ZIP
更新时间:2021-05-26 14:31:18
Golang Middlewares Tollbooth这是对HTTP请求进行速率限制的通用中间件。 注1:该库被视为已完成。 注意2:主要版本更改是向后不兼容的。 v2.0.0简化了旧API的丑陋。 Tollbooth这是对HTTP请求进行速率限制的通用中间件。 注1:该库被视为已完成。 注意2:主要版本更改是向后不兼容的。 v2.0.0简化了旧API的丑陋。 版本v1.0.0:此版本维护旧的API,但所有第三方模块均移至其自己的存储库中。 v2.xx:用于代码清理,线程安全和自动过期数据结构的全新API。 v3.xx:显然我们一直在使用golang.org/x/time/rate incorr
【文件预览】:
tollbooth-master
----.golangci.yml(570B)
----go.mod(263B)
----limiter()
--------limiter.go(14KB)
--------limiter_options.go(274B)
--------limiter_test.go(4KB)
--------limiter_benchmark_test.go(417B)
--------limiter_setter_getter_test.go(5KB)
----.github()
--------workflows()
----go.sum(2KB)
----tollbooth_test.go(12KB)
----tollbooth_bug_report_test.go(6KB)
----LICENSE(1KB)
----README.md(6KB)
----errors()
--------errors_test.go(190B)
--------errors.go(370B)
----.gitignore(16B)
----libstring()
--------libstring.go(1KB)
--------libstring_test.go(3KB)
----tollbooth.go(9KB)
----tollbooth_benchmark_test.go(1KB)

网友评论