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

Function _NodeService_Start_Handler

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

Source from the content-addressed store, hash-verified

298}
299
300func _NodeService_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
301 in := new(Backend)
302 if err := dec(in); err != nil {
303 return nil, err
304 }
305 if interceptor == nil {
306 return srv.(NodeServiceServer).Start(ctx, in)
307 }
308 info := &grpc.UnaryServerInfo{
309 Server: srv,
310 FullMethod: NodeService_Start_FullMethodName,
311 }
312 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
313 return srv.(NodeServiceServer).Start(ctx, req.(*Backend))
314 }
315 return interceptor(ctx, in, info, handler)
316}
317
318func _NodeService_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
319 in := new(Empty)

Callers

nothing calls this directly

Calls 1

StartMethod · 0.65

Tested by

no test coverage detected