MCPcopy Create free account
hub / github.com/evilsocket/sum / _SumService_Run_Handler

Function _SumService_Run_Handler

proto/sum.pb.go:1486–1502  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

1484}
1485
1486func _SumService_Run_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1487 in := new(Call)
1488 if err := dec(in); err != nil {
1489 return nil, err
1490 }
1491 if interceptor == nil {
1492 return srv.(SumServiceServer).Run(ctx, in)
1493 }
1494 info := &grpc.UnaryServerInfo{
1495 Server: srv,
1496 FullMethod: "/sum.SumService/Run",
1497 }
1498 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1499 return srv.(SumServiceServer).Run(ctx, req.(*Call))
1500 }
1501 return interceptor(ctx, in, info, handler)
1502}
1503
1504func _SumService_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1505 in := new(Empty)

Callers

nothing calls this directly

Calls 1

RunMethod · 0.65

Tested by

no test coverage detected