MCPcopy
hub / github.com/dapr/dapr / _TestService_Ping_Handler

Function _TestService_Ping_Handler

pkg/api/grpc/proxy/testserviceV1/test.v1.pb.go:342–358  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

340}
341
342func _TestService_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
343 in := new(PingRequest)
344 if err := dec(in); err != nil {
345 return nil, err
346 }
347 if interceptor == nil {
348 return srv.(TestServiceServer).Ping(ctx, in)
349 }
350 info := &grpc.UnaryServerInfo{
351 Server: srv,
352 FullMethod: "/mwitkow.testproto.v1.TestService/Ping",
353 }
354 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
355 return srv.(TestServiceServer).Ping(ctx, req.(*PingRequest))
356 }
357 return interceptor(ctx, in, info, handler)
358}
359
360func _TestService_PingError_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
361 in := new(PingRequest)

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
PingMethod · 0.65

Tested by

no test coverage detected