(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
| 99 | } |
| 100 | |
| 101 | func _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, |
nothing calls this directly
no test coverage detected
searching dependent graphs…