Github   Telegram
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
dynamic_config::Key< Parser > Struct Template Referencefinal

A config key is a unique identifier for a config variable. More...

#include <userver/dynamic_config/snapshot.hpp>

Static Public Member Functions

static auto Parse (const DocsMap &docs_map)
 

Detailed Description

template<auto Parser>
struct dynamic_config::Key< Parser >

A config key is a unique identifier for a config variable.

tracing::NoLogSpans ParseNoLogSpans(const dynamic_config::DocsMap& docs_map) {
return docs_map.Get("USERVER_NO_LOG_SPANS").As<tracing::NoLogSpans>();
}
constexpr dynamic_config::Key<ParseNoLogSpans> kNoLogSpans{};
Examples
components/component_sample_test.cpp.

Definition at line 18 of file snapshot.hpp.

Member Function Documentation

◆ Parse()

template<auto Parser>
static auto dynamic_config::Key< Parser >::Parse ( const DocsMap docs_map)
inlinestatic

Definition at line 19 of file snapshot.hpp.


The documentation for this struct was generated from the following file: