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

Method Classes

pkg/ratelimit/resource.go:39–39  ·  view source on GitHub ↗

Classes represents the rate limiting classes for the resource. A resource may belong in multiple classes. The limiter instance will limit access to the resource based on the limits of the first class that matches the configuration. If no class is matched, the limiter instance can fallback to a defau

()

Source from the content-addressed store, hash-verified

37 // based on the limits of the first class that matches the configuration. If no
38 // class is matched, the limiter instance can fallback to a default rate limit.
39 Classes() []string
40}
41
42type resource struct {

Callers 5

TestGRPCFunction · 0.65
RateLimitMethod · 0.65
logFieldsFunction · 0.65
RateLimitMethod · 0.65
TestHTTPFunction · 0.65

Implementers 2

mockResourcepkg/ratelimit/rate_limit_test.go
resourcepkg/ratelimit/resource.go

Calls

no outgoing calls

Tested by 3

TestGRPCFunction · 0.52
RateLimitMethod · 0.52
TestHTTPFunction · 0.52