|
Motion Master 6.0.0-alpha.86
Next-generation motion control software
|
Server configuration. More...
#include <http_server.h>
Public Attributes | |
| std::string | bindAddress {"127.0.0.1"} |
| Local address to bind. Loopback serves only this machine; "0.0.0.0" serves the network. | |
| uint16_t | port = 61447 |
| TCP port to listen on (TLS). | |
| std::string | certFile |
| Path to the TLS certificate (PEM). | |
| std::string | keyFile |
| Path to the TLS private key (PEM). | |
| std::string | version |
Application version string served at GET /api/version. | |
| std::string | startedConfig |
Serialized JSON of the boot config; served at GET /api/config. | |
| InitDeviceManagerFn | initDeviceManager |
Handler for POST /api/init; required for API-driven init. | |
| GetLogFn | getLog |
Handler for GET /api/log; returns buffered log entries. | |
| RefreshCertFn | refreshCert |
Handler for POST /api/cert/refresh; fetches+installs a cert. | |
| GetGameLoopHealthFn | getGameLoopHealth |
Handler for GET /api/game-loop; RT loop health snapshot. | |
| SetGameLoopPeriodFn | setGameLoopPeriod |
Handler for PUT /api/game-loop; retimes the RT loop. | |
| AutoTuningRunFn | runAutoTuning |
Handler for POST /api/auto-tuning/run; forwards a call. | |
| AutoTuningStatusFn | autoTuningStatus |
Handler for GET /api/auto-tuning; the startup snapshot. | |
| AutoTuningSpecFn | autoTuningSpec |
Handler for GET /api/auto-tuning/swagger.yml. | |
| EniOptionsFn | eniOptions |
| std::string | corsOrigin {"https://motion-master.synapticon.com"} |
Value sent in Access-Control-Allow-Origin. Defaults to the production PWA origin. | |
Server configuration.
| AutoTuningSpecFn HttpServer::Config::autoTuningSpec |
Handler for GET /api/auto-tuning/swagger.yml.
| AutoTuningStatusFn HttpServer::Config::autoTuningStatus |
Handler for GET /api/auto-tuning; the startup snapshot.
| std::string HttpServer::Config::bindAddress {"127.0.0.1"} |
Local address to bind. Loopback serves only this machine; "0.0.0.0" serves the network.
| std::string HttpServer::Config::certFile |
Path to the TLS certificate (PEM).
| std::string HttpServer::Config::corsOrigin {"https://motion-master.synapticon.com"} |
Value sent in Access-Control-Allow-Origin. Defaults to the production PWA origin.
| EniOptionsFn HttpServer::Config::eniOptions |
Supplies the non-bus half of GET /api/eni; required for it.
| GetGameLoopHealthFn HttpServer::Config::getGameLoopHealth |
Handler for GET /api/game-loop; RT loop health snapshot.
| GetLogFn HttpServer::Config::getLog |
Handler for GET /api/log; returns buffered log entries.
| InitDeviceManagerFn HttpServer::Config::initDeviceManager |
Handler for POST /api/init; required for API-driven init.
| std::string HttpServer::Config::keyFile |
Path to the TLS private key (PEM).
| uint16_t HttpServer::Config::port = 61447 |
TCP port to listen on (TLS).
| RefreshCertFn HttpServer::Config::refreshCert |
Handler for POST /api/cert/refresh; fetches+installs a cert.
| AutoTuningRunFn HttpServer::Config::runAutoTuning |
Handler for POST /api/auto-tuning/run; forwards a call.
| SetGameLoopPeriodFn HttpServer::Config::setGameLoopPeriod |
Handler for PUT /api/game-loop; retimes the RT loop.
| std::string HttpServer::Config::startedConfig |
Serialized JSON of the boot config; served at GET /api/config.
| std::string HttpServer::Config::version |
Application version string served at GET /api/version.