mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-15 09:20:52 +08:00
32 lines
502 B
C++
32 lines
502 B
C++
/**
|
|
* Copyright (C) 2015-2018
|
|
* All rights reserved.
|
|
*
|
|
* AUTHOR(S)
|
|
* Zheng Shuxin
|
|
* E-mail: zhengshuxin@qiyi.com
|
|
*
|
|
* VERSION
|
|
* Fri 16 Jun 2017 01:59:13 PM CST
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
struct restart_req_t;
|
|
struct restart_res_t;
|
|
class http_client;
|
|
|
|
class service_restart
|
|
{
|
|
public:
|
|
service_restart(http_client& client) : client_(client) {}
|
|
~service_restart(void) {}
|
|
|
|
bool run(acl::json& json);
|
|
|
|
private:
|
|
http_client& client_;
|
|
|
|
bool handle(const restart_req_t& req, restart_res_t& res);
|
|
};
|