MCPcopy Index your code
hub / github.com/labstack/echo / RateLimiter

Function RateLimiter

middleware/rate_limiter.go:86–91  ·  view source on GitHub ↗

* RateLimiter returns a rate limiting middleware e := echo.New() limiterStore := middleware.NewRateLimiterMemoryStore(20) e.GET("/rate-limited", func(c *echo.Context) error { return c.String(http.StatusOK, "test") }, RateLimiter(limiterStore)) */

(store RateLimiterStore)

Source from the content-addressed store, hash-verified

84 }, RateLimiter(limiterStore))
85*/
86func RateLimiter(store RateLimiterStore) echo.MiddlewareFunc {
87 config := DefaultRateLimiterConfig
88 config.Store = store
89
90 return RateLimiterWithConfig(config)
91}
92
93/*
94RateLimiterWithConfig returns a rate limiting middleware

Callers

nothing calls this directly

Calls 1

RateLimiterWithConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…