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

Function WithStreamInterceptors

pkg/rpcserver/rpcserver.go:93–97  ·  view source on GitHub ↗

WithStreamInterceptors adds gRPC stream interceptors

(interceptors ...grpc.StreamServerInterceptor)

Source from the content-addressed store, hash-verified

91
92// WithStreamInterceptors adds gRPC stream interceptors
93func WithStreamInterceptors(interceptors ...grpc.StreamServerInterceptor) Option {
94 return func(o *options) {
95 o.streamInterceptors = append(o.streamInterceptors, interceptors...)
96 }
97}
98
99// WithUnaryInterceptors adds gRPC unary interceptors
100func WithUnaryInterceptors(interceptors ...grpc.UnaryServerInterceptor) Option {

Callers 1

TestNewRPCServerFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestNewRPCServerFunction · 0.74