seqeron 0.18.0
Loading...
Searching...
No Matches
Env.hpp File Reference
#include <cstdint>
#include <cstdlib>
#include <filesystem>
#include <string>
#include <system_error>

Go to the source code of this file.

Namespaces

namespace  org
 
namespace  org::limitless
 
namespace  org::limitless::seqeron
 
namespace  org::limitless::seqeron::util
 

Functions

std::int32_t org::limitless::seqeron::util::envInt (const char *name, const std::int32_t fallback)
 Reads a base-10 int from the environment.
 
std::string org::limitless::seqeron::util::envString (const char *name, const std::string &fallback)
 Reads a string from the environment.
 
bool org::limitless::seqeron::util::envFlag (const char *name)
 Whether a variable is set and non-empty — the convention every SEQERON_* opt-in switch uses.
 
std::string org::limitless::seqeron::util::joinPath (const std::string &dir, const std::string &name)
 Joins a directory and a name with exactly one separator.
 
std::string org::limitless::seqeron::util::resolveAeronDir (const char *envName, const std::int32_t memberId)
 Resolves the co-located cluster member's Aeron directory, which an app shares to reach that node's queue, Replayer and (while it leads) IPC ingress.
 
std::string org::limitless::seqeron::util::resolveEgressEndpoint (const char *envName, const std::uint16_t defaultPort)
 Resolves a "host:port" cluster-egress endpoint.
 
bool org::limitless::seqeron::util::verboseLoggingEnabled ()