ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
environment Struct Referencefinal

Represents a pure server environment (host + port only, no credentials). More...

#include <environment.hpp>

Collaboration diagram for environment:
Collaboration graph

Public Attributes

boost::uuids::uuid id
 Unique identifier for this environment.
 
std::optional< boost::uuids::uuid > folder_id
 Folder this environment belongs to.
 
std::string name
 Display name for this environment.
 
std::string host
 Host name or IP address of the server.
 
int port {0}
 Port number the NATS server is listening on.
 
int http_port {8080}
 Port number the HTTP server is listening on.
 
std::string description
 Optional description or notes about this environment.
 
std::string subject_prefix
 NATS subject namespace for this environment.
 

Detailed Description

Represents a pure server environment (host + port only, no credentials).

An environment captures where to connect — host and port — without any credential information. Connections may be linked to an environment so that host/port are resolved live rather than stored redundantly.

Environments are organized into folders and can be tagged for flexible categorization.

Member Data Documentation

◆ folder_id

std::optional<boost::uuids::uuid> folder_id

Folder this environment belongs to.

If empty, the environment is at the root level.

◆ http_port

int http_port {8080}

Port number the HTTP server is listening on.

Used by the Qt client to construct the HTTP base URL for package upload and download. Defaults to 8080.

◆ subject_prefix

std::string subject_prefix

NATS subject namespace for this environment.

When non-empty, prepended to every outbound NATS subject to isolate this environment from others sharing the same broker. Format: "ores.{tier}.{instance}", e.g. "ores.dev.local1".