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

22 lines
409 B
C
Raw Normal View History

#pragma once
2018-12-12 11:16:12 +08:00
struct ACL_MASTER_SERV;
struct list_req_t;
struct list_res_t;
class http_client;
class service_list
{
public:
service_list(http_client& client) : client_(client) {}
~service_list(void) {}
bool run(acl::json& json);
private:
http_client& client_;
bool handle(const list_req_t& req, list_res_t& res);
void add_one(list_res_t& res, const ACL_MASTER_SERV* ser);
};