| 369 | } |
| 370 | |
| 371 | func _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 | |
| 389 | func _MasterGrpcService_RegisterSlave_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 390 | in := new(MasterRegisterSlaveRequest) |