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

Configuration for a NATS connection. More...

#include <nats_options.hpp>

Collaboration diagram for nats_options:
Collaboration graph

Public Attributes

std::string url = "nats://localhost:4222"
 NATS server URL (e.g. "nats://localhost:4222" or "tls+tcp://localhost:4222" for TLS).
 
std::string subject_prefix
 Subject prefix applied to every outbound subject.
 
std::string tls_ca_cert
 Mutual TLS settings.
 
std::string tls_client_cert
 
std::string tls_client_key
 

Detailed Description

Configuration for a NATS connection.

Member Data Documentation

◆ subject_prefix

std::string subject_prefix

Subject prefix applied to every outbound subject.

Format: "ores.{tier}.{instance}", e.g. "ores.dev.local1". When set, all pub/sub/request subjects become "{subject_prefix}.{relative_subject}". Leave empty to use subjects as-is (e.g. in tests or scripts that manage prefixes externally).

◆ tls_ca_cert

std::string tls_ca_cert

Mutual TLS settings.

All three paths must be set together, or all left empty (plain TCP). When set, the NATS connection uses TLS and presents the client certificate to the broker for mutual authentication.

tls_ca_cert — path to the CA certificate (ca.crt) tls_client_cert — path to this service's certificate (<service>.crt) tls_client_key — path to this service's private key (<service>.key)