MCPcopy
hub / github.com/labstack/echo / AllowContext

Method AllowContext

middleware/rate_limiter.go:34–34  ·  view source on GitHub ↗
(c *echo.Context, identifier string)

Source from the content-addressed store, hash-verified

32// headers such as Retry-After or X-RateLimit-* on the allow/deny decision.
33type RateLimiterStoreContext interface {
34 AllowContext(c *echo.Context, identifier string) (bool, error)
35}
36
37// RateLimiterConfig defines the configuration for the rate limiter

Callers 1

ToMiddlewareMethod · 0.65

Implementers 2

RateLimiterMemoryStoremiddleware/rate_limiter.go
ctxAwareStoremiddleware/rate_limiter_context_test.g

Calls

no outgoing calls

Tested by

no test coverage detected