Motion Master 6.0.0-alpha.50
Next-generation motion control software
Loading...
Searching...
No Matches
HttpServer::Config Struct Reference

Server configuration. More...

#include <http_server.h>

Collaboration diagram for HttpServer::Config:
[legend]

Public Attributes

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
 
std::string corsOrigin {"https://motion-master.synapticon.com"}
 Value sent in Access-Control-Allow-Origin. Defaults to the production PWA origin.
 

Detailed Description

Server configuration.

Member Data Documentation

◆ certFile

std::string HttpServer::Config::certFile

Path to the TLS certificate (PEM).

◆ corsOrigin

std::string HttpServer::Config::corsOrigin {"https://motion-master.synapticon.com"}

Value sent in Access-Control-Allow-Origin. Defaults to the production PWA origin.

◆ getGameLoopHealth

GetGameLoopHealthFn HttpServer::Config::getGameLoopHealth

Handler for GET /api/game-loop; RT loop health snapshot.

◆ getLog

GetLogFn HttpServer::Config::getLog

Handler for GET /api/log; returns buffered log entries.

◆ initDeviceManager

InitDeviceManagerFn HttpServer::Config::initDeviceManager

Handler for POST /api/init; required for API-driven init.

◆ keyFile

std::string HttpServer::Config::keyFile

Path to the TLS private key (PEM).

◆ port

uint16_t HttpServer::Config::port = 61447

TCP port to listen on (TLS).

◆ refreshCert

RefreshCertFn HttpServer::Config::refreshCert

Handler for POST /api/cert/refresh; fetches+installs a cert.

◆ setGameLoopPeriod

SetGameLoopPeriodFn HttpServer::Config::setGameLoopPeriod

Handler for PUT /api/game-loop; retimes the RT loop.

◆ startedConfig

std::string HttpServer::Config::startedConfig

Serialized JSON of the boot config; served at GET /api/config.

◆ version

std::string HttpServer::Config::version

Application version string served at GET /api/version.


The documentation for this struct was generated from the following file: