MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / _MasterGrpcService_Shutdown_Handler

Function _MasterGrpcService_Shutdown_Handler

lib/proto/master_grpc.pb.go:371–387  ·  view source on GitHub ↗
(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)

Source from the content-addressed store, hash-verified

369}
370
371func _MasterGrpcService_Shutdown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
372 in := new(MasterShutdownRequest)
373 if err := dec(in); err != nil {
374 return nil, err
375 }
376 if interceptor == nil {
377 return srv.(MasterGrpcServiceServer).Shutdown(ctx, in)
378 }
379 info := &grpc.UnaryServerInfo{
380 Server: srv,
381 FullMethod: "/cluster.MasterGrpcService/Shutdown",
382 }
383 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
384 return srv.(MasterGrpcServiceServer).Shutdown(ctx, req.(*MasterShutdownRequest))
385 }
386 return interceptor(ctx, in, info, handler)
387}
388
389func _MasterGrpcService_RegisterSlave_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
390 in := new(MasterRegisterSlaveRequest)

Callers

nothing calls this directly

Calls 1

ShutdownMethod · 0.65

Tested by

no test coverage detected