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

Method Allow

middleware/rate_limiter.go:26–26  ·  view source on GitHub ↗
(identifier string)

Source from the content-addressed store, hash-verified

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.

Implementers 2

RateLimiterMemoryStoremiddleware/rate_limiter.go
ctxAwareStoremiddleware/rate_limiter_context_test.g

Calls

no outgoing calls