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

Function WithUnaryInterceptors

pkg/rpcserver/rpcserver.go:100–104  ·  view source on GitHub ↗

WithUnaryInterceptors adds gRPC unary interceptors

(interceptors ...grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

98
99// WithUnaryInterceptors adds gRPC unary interceptors
100func WithUnaryInterceptors(interceptors ...grpc.UnaryServerInterceptor) Option {
101 return func(o *options) {
102 o.unaryInterceptors = append(o.unaryInterceptors, interceptors...)
103 }
104}
105
106// WithTrustedProxies adds trusted proxies from which proxy headers are trusted.
107func WithTrustedProxies(cidrs ...string) Option {

Callers 1

TestNewRPCServerFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestNewRPCServerFunction · 0.74