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

Function _MathService_Add_Handler

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

Source from the content-addressed store, hash-verified

81}
82
83func _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
101func _MathService_Substract_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
102 in := new(Input)

Callers

nothing calls this directly

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…