acl/app/master/daemon/manage/action/service_list.h

34 lines
565 B
C
Raw Normal View History

2017-06-16 17:00:49 +08:00
/**
* Copyright (C) 2015-2018
* All rights reserved.
*
* AUTHOR(S)
* Zheng Shuxin
* E-mail: zhengshuxin@qiyi.com
*
* VERSION
* Fri 16 Jun 2017 10:46:35 AM CST
*/
#pragma once
struct ACL_MASTER_SERV;
2017-07-17 10:10:46 +08:00
struct list_req_t;
struct list_res_t;
class http_client;
2017-06-16 17:00:49 +08:00
class service_list
{
public:
service_list(http_client& client) : client_(client) {}
2017-06-16 17:00:49 +08:00
~service_list(void) {}
bool run(acl::json& json);
2017-06-16 17:00:49 +08:00
private:
http_client& client_;
bool handle(const list_req_t& req, list_res_t& res);
2017-06-16 17:00:49 +08:00
void add_one(list_res_t& res, const ACL_MASTER_SERV* ser);
};