Class Server¶
Defined in File server.hpp
Nested Relationships¶
Nested Types¶
Class Documentation¶
-
class Server¶
Public Functions
-
~Server()¶
Destructor.
-
void startHttp(uint16_t port) const¶
Start the HTTP server.
- Parameters
port – port to use for the HTTP server
-
void stopHttp() const¶
Stop the HTTP server.
-
void startGrpc(uint16_t port) const¶
Start the gRPC server.
- Parameters
port – port to use for the gRPC server
-
void stopGrpc() const¶
Stop the gRPC server.
Public Static Functions
-
static void setModelRepository(const std::filesystem::path &path)¶
Set the path to the model repository associated with this server.
- Parameters
path – path to the model repository
-
static void enableRepositoryMonitoring(bool use_polling)¶
Turn on active monitoring of the model repository path for new files.
- Parameters
use_polling – set to true to use polling to check the directory for new files, false to use events. Note that events may not work well on all platforms.
-
struct ServerImpl¶
-
~Server()¶