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

Function _Tunnel_Ping_Handler

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

Source from the content-addressed store, hash-verified

133}
134
135func _Tunnel_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
136 in := new(Empty)
137 if err := dec(in); err != nil {
138 return nil, err
139 }
140 if interceptor == nil {
141 return srv.(TunnelServer).Ping(ctx, in)
142 }
143 info := &grpc.UnaryServerInfo{
144 Server: srv,
145 FullMethod: "/remote.Tunnel/Ping",
146 }
147 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
148 return srv.(TunnelServer).Ping(ctx, req.(*Empty))
149 }
150 return interceptor(ctx, in, info, handler)
151}
152
153// Tunnel_ServiceDesc is the grpc.ServiceDesc for Tunnel service.
154// 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