| 399 | } |
| 400 | |
| 401 | func _NodeService_GetStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 402 | in := new(StatRequest) |
| 403 | if err := dec(in); err != nil { |
| 404 | return nil, err |
| 405 | } |
| 406 | if interceptor == nil { |
| 407 | return srv.(NodeServiceServer).GetStats(ctx, in) |
| 408 | } |
| 409 | info := &grpc.UnaryServerInfo{ |
| 410 | Server: srv, |
| 411 | FullMethod: NodeService_GetStats_FullMethodName, |
| 412 | } |
| 413 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 414 | return srv.(NodeServiceServer).GetStats(ctx, req.(*StatRequest)) |
| 415 | } |
| 416 | return interceptor(ctx, in, info, handler) |
| 417 | } |
| 418 | |
| 419 | func _NodeService_GetOutboundsLatency_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 420 | in := new(LatencyRequest) |