| 340 | } |
| 341 | |
| 342 | func _TestService_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 343 | in := new(PingRequest) |
| 344 | if err := dec(in); err != nil { |
| 345 | return nil, err |
| 346 | } |
| 347 | if interceptor == nil { |
| 348 | return srv.(TestServiceServer).Ping(ctx, in) |
| 349 | } |
| 350 | info := &grpc.UnaryServerInfo{ |
| 351 | Server: srv, |
| 352 | FullMethod: "/mwitkow.testproto.v1.TestService/Ping", |
| 353 | } |
| 354 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 355 | return srv.(TestServiceServer).Ping(ctx, req.(*PingRequest)) |
| 356 | } |
| 357 | return interceptor(ctx, in, info, handler) |
| 358 | } |
| 359 | |
| 360 | func _TestService_PingError_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 361 | in := new(PingRequest) |