| 706 | } |
| 707 | |
| 708 | func _Upstream_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 709 | in := new(Empty) |
| 710 | if err := dec(in); err != nil { |
| 711 | return nil, err |
| 712 | } |
| 713 | if interceptor == nil { |
| 714 | return srv.(UpstreamServer).Ping(ctx, in) |
| 715 | } |
| 716 | info := &grpc.UnaryServerInfo{ |
| 717 | Server: srv, |
| 718 | FullMethod: "/remote.Upstream/Ping", |
| 719 | } |
| 720 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 721 | return srv.(UpstreamServer).Ping(ctx, req.(*Empty)) |
| 722 | } |
| 723 | return interceptor(ctx, in, info, handler) |
| 724 | } |
| 725 | |
| 726 | // Upstream_ServiceDesc is the grpc.ServiceDesc for Upstream service. |
| 727 | // It's only intended for direct use with grpc.RegisterService, |