(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
| 81 | } |
| 82 | |
| 83 | func _MathService_Add_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 84 | in := new(Input) |
| 85 | if err := dec(in); err != nil { |
| 86 | return nil, err |
| 87 | } |
| 88 | if interceptor == nil { |
| 89 | return srv.(MathServiceServer).Add(ctx, in) |
| 90 | } |
| 91 | info := &grpc.UnaryServerInfo{ |
| 92 | Server: srv, |
| 93 | FullMethod: "/Math.MathService/Add", |
| 94 | } |
| 95 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 96 | return srv.(MathServiceServer).Add(ctx, req.(*Input)) |
| 97 | } |
| 98 | return interceptor(ctx, in, info, handler) |
| 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) |
nothing calls this directly
no test coverage detected
searching dependent graphs…