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

Function _NodeService_GetSystemStats_Handler

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

Source from the content-addressed store, hash-verified

363type NodeService_GetLogsServer = grpc.ServerStreamingServer[Log]
364
365func _NodeService_GetSystemStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
366 in := new(Empty)
367 if err := dec(in); err != nil {
368 return nil, err
369 }
370 if interceptor == nil {
371 return srv.(NodeServiceServer).GetSystemStats(ctx, in)
372 }
373 info := &grpc.UnaryServerInfo{
374 Server: srv,
375 FullMethod: NodeService_GetSystemStats_FullMethodName,
376 }
377 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
378 return srv.(NodeServiceServer).GetSystemStats(ctx, req.(*Empty))
379 }
380 return interceptor(ctx, in, info, handler)
381}
382
383func _NodeService_GetBackendStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
384 in := new(Empty)

Callers

nothing calls this directly

Calls 1

GetSystemStatsMethod · 0.65

Tested by

no test coverage detected