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

Function WithRateLimiter

pkg/rpcserver/rpcserver.go:128–132  ·  view source on GitHub ↗

WithRateLimiter configures a rate limiter on the server.

(limiter ratelimit.Interface)

Source from the content-addressed store, hash-verified

126
127// WithRateLimiter configures a rate limiter on the server.
128func WithRateLimiter(limiter ratelimit.Interface) Option {
129 return func(o *options) {
130 o.limiter = limiter
131 }
132}
133
134// ErrRPCRecovered is returned when a panic is caught from an RPC.
135var ErrRPCRecovered = errors.DefineInternal("rpc_recovered", "Internal Server Error")

Callers 1

initGRPCMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected