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

Interface RateLimiterStore

middleware/rate_limiter.go:25–27  ·  view source on GitHub ↗

RateLimiterStore is the interface to be implemented by custom stores.

Source from the content-addressed store, hash-verified

23
24// RateLimiterStore is the interface to be implemented by custom stores.
25type RateLimiterStore interface {
26 Allow(identifier string) (bool, error)
27}
28
29// RateLimiterStoreContext is an optional interface a RateLimiterStore may implement.
30// When the configured store implements it, the rate limiter calls AllowContext

Implementers 2

RateLimiterMemoryStoremiddleware/rate_limiter.go
ctxAwareStoremiddleware/rate_limiter_context_test.g

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…