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

Function _NodeService_Stop_Handler

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

Source from the content-addressed store, hash-verified

316}
317
318func _NodeService_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
319 in := new(Empty)
320 if err := dec(in); err != nil {
321 return nil, err
322 }
323 if interceptor == nil {
324 return srv.(NodeServiceServer).Stop(ctx, in)
325 }
326 info := &grpc.UnaryServerInfo{
327 Server: srv,
328 FullMethod: NodeService_Stop_FullMethodName,
329 }
330 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
331 return srv.(NodeServiceServer).Stop(ctx, req.(*Empty))
332 }
333 return interceptor(ctx, in, info, handler)
334}
335
336func _NodeService_GetBaseInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
337 in := new(Empty)

Callers

nothing calls this directly

Calls 1

StopMethod · 0.65

Tested by

no test coverage detected