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

Function UnaryServerInterceptor

pkg/rpcserver/rpcserver_test.go:159–162  ·  view source on GitHub ↗
(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler)

Source from the content-addressed store, hash-verified

157}
158
159func UnaryServerInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error) {
160 ctx = context.WithValue(ctx, &mockKey2{}, "bar")
161 return handler(ctx, req)
162}
163
164func StreamServerInterceptor(srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error {
165 wrapped := grpc_middleware.WrapServerStream(ss)

Callers

nothing calls this directly

Calls 1

handlerFunction · 0.85

Tested by

no test coverage detected