MCPcopy Create free account
hub / github.com/PasarGuard/node / _NodeService_GetOutboundsLatency_Handler

Function _NodeService_GetOutboundsLatency_Handler

common/service_grpc.pb.go:419–435  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

417}
418
419func _NodeService_GetOutboundsLatency_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
420 in := new(LatencyRequest)
421 if err := dec(in); err != nil {
422 return nil, err
423 }
424 if interceptor == nil {
425 return srv.(NodeServiceServer).GetOutboundsLatency(ctx, in)
426 }
427 info := &grpc.UnaryServerInfo{
428 Server: srv,
429 FullMethod: NodeService_GetOutboundsLatency_FullMethodName,
430 }
431 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
432 return srv.(NodeServiceServer).GetOutboundsLatency(ctx, req.(*LatencyRequest))
433 }
434 return interceptor(ctx, in, info, handler)
435}
436
437func _NodeService_GetUserOnlineStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
438 in := new(StatRequest)

Callers

nothing calls this directly

Calls 1

GetOutboundsLatencyMethod · 0.65

Tested by

no test coverage detected