|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <RestEndpoint.hpp>
Public Member Functions | |
| RestEndpoint (const std::string &, int port, std::function< void(const cmdobj_t &, cmdlib::cmd::CommandReply)> callback) noexcept | |
| void | init (size_t threads) |
| void | start () |
| void | stop () |
| void | shutdown () |
| void | handleResponseCommand (const cmdobj_t &cmd, cmdlib::cmd::CommandReply &meta) |
| uint16_t | getPort () const |
| std::shared_ptr< Pistache::Http::Client > | getHttpClient () const |
Private Member Functions | |
| void | createRouting () |
| void | createDescription () |
| void | handle_route_command (const Pistache::Rest::Request &, Pistache::Http::ResponseWriter response) |
Private Attributes | |
| Pistache::Port | port_ |
| Pistache::Address | address_ |
| std::shared_ptr< Pistache::Http::Endpoint > | http_endpoint_ |
| Pistache::Rest::Description | description_ |
| Pistache::Rest::Router | router_ |
| Pistache::Http::Mime::MediaType | accepted_mime_ |
| std::shared_ptr< Pistache::Http::Client > | http_client_ |
| Pistache::Http::Client::Options | http_client_options_ |
| std::vector< Pistache::Async::Promise< Pistache::Http::Response > > | http_client_responses_ |
| std::function< void(const cmdobj_t &, cmdlib::cmd::CommandReply)> | command_callback_ |
| std::thread | server_thread_ |
Definition at line 39 of file RestEndpoint.hpp.
|
inlineexplicitnoexcept |
Definition at line 41 of file RestEndpoint.hpp.
|
private |
|
private |
Definition at line 54 of file RestEndpoint.cpp.
|
inline |
Definition at line 62 of file RestEndpoint.hpp.
|
inline |
Definition at line 59 of file RestEndpoint.hpp.
|
private |
Definition at line 78 of file RestEndpoint.cpp.
| void RestEndpoint::handleResponseCommand | ( | const cmdobj_t & | cmd, |
| cmdlib::cmd::CommandReply & | meta ) |
Definition at line 96 of file RestEndpoint.cpp.
| void RestEndpoint::init | ( | size_t | threads | ) |
Definition at line 20 of file RestEndpoint.cpp.
| void RestEndpoint::shutdown | ( | ) |
Definition at line 47 of file RestEndpoint.cpp.
| void RestEndpoint::start | ( | ) |
Definition at line 35 of file RestEndpoint.cpp.
| void dunedaq::restcmd::RestEndpoint::stop | ( | ) |
|
private |
Definition at line 80 of file RestEndpoint.hpp.
|
private |
Definition at line 76 of file RestEndpoint.hpp.
|
private |
Definition at line 88 of file RestEndpoint.hpp.
|
private |
Definition at line 78 of file RestEndpoint.hpp.
|
private |
Definition at line 83 of file RestEndpoint.hpp.
|
private |
Definition at line 84 of file RestEndpoint.hpp.
|
private |
Definition at line 85 of file RestEndpoint.hpp.
|
private |
Definition at line 77 of file RestEndpoint.hpp.
|
private |
Definition at line 75 of file RestEndpoint.hpp.
|
private |
Definition at line 79 of file RestEndpoint.hpp.
|
private |
Definition at line 91 of file RestEndpoint.hpp.