MCPcopy Create free account
hub / github.com/pace/bricks / _MathService_Substract_Handler

Function _MathService_Substract_Handler

tools/testserver/math/math_grpc.pb.go:101–117  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

99}
100
101func _MathService_Substract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
102 in := new(Input)
103 if err := dec(in); err != nil {
104 return nil, err
105 }
106 if interceptor == nil {
107 return srv.(MathServiceServer).Substract(ctx, in)
108 }
109 info := &grpc.UnaryServerInfo{
110 Server: srv,
111 FullMethod: "/Math.MathService/Substract",
112 }
113 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
114 return srv.(MathServiceServer).Substract(ctx, req.(*Input))
115 }
116 return interceptor(ctx, in, info, handler)
117}
118
119// MathService_ServiceDesc is the grpc.ServiceDesc for MathService service.
120// It's only intended for direct use with grpc.RegisterService,

Callers

nothing calls this directly

Calls 1

SubstractMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…