MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / RateLimit

Method RateLimit

pkg/ratelimit/rate_limit.go:31–31  ·  view source on GitHub ↗

RateLimit limits access on a Resource. The RateLimit operations returns true if the rate limit for the requested resource has been exceeded, along with metadata for the rate limiting operation.

(resource Resource)

Source from the content-addressed store, hash-verified

29 // The RateLimit operations returns true if the rate limit for the requested resource has been exceeded, along
30 // with metadata for the rate limiting operation.
31 RateLimit(resource Resource) (limit bool, result Result)
32}
33
34// NoopRateLimiter does not enforce any rate limits.

Callers 9

makeRateLimiterFunction · 0.65
UnaryServerInterceptorFunction · 0.65
StreamServerInterceptorFunction · 0.65
HTTPMiddlewareFunction · 0.65
TestRateLimitFunction · 0.65
RateLimitMethod · 0.65
RequireFunction · 0.65
RateLimitMethod · 0.65
requireRateLimitsMethod · 0.65

Calls

no outgoing calls

Tested by 2

TestRateLimitFunction · 0.52
RateLimitMethod · 0.52