llarp::config::Env

Fetches config from environmental variable.

#include <definition.hpp>

Public Functions

Name
template <typename GetEnv >
constexpr
Env(std::string_view _varname, const GetEnv & _get_env)
std::optional< std::string_view > operator()() const

Public Attributes

Name
std::function< std::optional< std::string_view >(std::string_view)> get_env
std::string varname

Public Functions Documentation

function Env

template <typename GetEnv >
inline constexpr Env(
    std::string_view _varname,
    const GetEnv & _get_env
)

function operator()

inline std::optional< std::string_view > operator()() const

Public Attributes Documentation

variable get_env

std::function< std::optional< std::string_view >(std::string_view)> get_env;

variable varname

std::string varname;

Updated on 2026-01-10 at 22:49:45 +0000