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

Method Key

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

Key represents the unique identifier for the resource.

()

Source from the content-addressed store, hash-verified

32type Resource interface {
33 // Key represents the unique identifier for the resource.
34 Key() string
35 // Classes represents the rate limiting classes for the resource. A resource may
36 // belong in multiple classes. The limiter instance will limit access to the resource
37 // based on the limits of the first class that matches the configuration. If no

Callers 15

TestInitTaskGroupFunction · 0.65
TestAddTaskFunction · 0.65
TestPopTaskFunction · 0.65
TestTaskQueueFunction · 0.65
TestProtoDeduplicatorFunction · 0.65
TestMutexFunction · 0.65
UnaryServerInterceptorFunction · 0.65
StreamServerInterceptorFunction · 0.65
HTTPMiddlewareFunction · 0.65
TestGRPCFunction · 0.65
RateLimitMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 9

TestInitTaskGroupFunction · 0.52
TestAddTaskFunction · 0.52
TestPopTaskFunction · 0.52
TestTaskQueueFunction · 0.52
TestProtoDeduplicatorFunction · 0.52
TestMutexFunction · 0.52
TestGRPCFunction · 0.52
TestHTTPFunction · 0.52