acl/app/master/tools/master_ctld/action/commands_action.h

20 lines
414 B
C
Raw Normal View History

#pragma once
2018-12-12 11:16:12 +08:00
#include "base_action.h"
class commands_action : public base_action
{
public:
commands_action(const char* addr, acl::HttpServletRequest&,
acl::HttpServletResponse&, const char* cmd);
~commands_action(void) {}
// @override
int run(acl::string& out);
private:
acl::string cmd_;
template<typename TReq, typename TReqData>
bool enabled(acl::json& in, acl::string& out);
};