MCPcopy Create free account
hub / github.com/devspace-sh/devspace / _Upstream_Ping_Handler

Function _Upstream_Ping_Handler

helper/remote/remote_grpc.pb.go:708–724  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

706}
707
708func _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,

Callers

nothing calls this directly

Calls 1

PingMethod · 0.65

Tested by

no test coverage detected