userver: dynamic_config::Key< Parser > Struct Template Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
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 19 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 20 of file snapshot.hpp.


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