We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b81356d commit 1a0e754Copy full SHA for 1a0e754
website/content/middleware/rate-limiter.md
@@ -13,13 +13,15 @@ may not be the best option for a high number of concurrent requests or a large n
13
14
### Usage
15
16
-To add a rate limit to your application simply add the `RateLimiter` middlware.
+To add a rate limit to your application simply add the `RateLimiter` middleware.
17
The example below will limit the application to 20 requests/sec using the default in-memory store:
18
19
```go
20
e.Use(middleware.RateLimiter(middleware.NewRateLimiterMemoryStore(20)))
21
```
22
23
+Note: if the provided rate is a float number, Burst will be treated as the rounded down value of the rate.
24
+
25
## Custom Configuration
26
27
0 commit comments