userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
registered_config_meta.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/dynamic_config/registered_config_meta.hpp
4
/// @brief @copybrief dynamic_config::RegisteredConfigMeta
5
6
#
include
<
string_view
>
7
8
#
include
<
userver
/
dynamic_config
/
fwd
.
hpp
>
9
10
USERVER_NAMESPACE_BEGIN
11
12
namespace
dynamic_config {
13
14
/// @brief Metadata of a single registered dynamic_config::Key.
15
/// @note Both fields are string_views into the static global registry.
16
/// The registry is append-only and its storage is never freed, so the views
17
/// remain valid for the lifetime of the process. However, do not store
18
/// RegisteredConfigMeta across calls that could modify the registry (i.e.
19
/// do not capture it before static initialisation completes).
20
struct
RegisteredConfigMeta
final
{
21
std::string_view name;
22
/// SHA-256(canonical JSON of schema), lowercase hex, 64 chars.
23
/// Empty for keys not generated by chaotic.
24
std::string_view
schema_hash
;
25
};
26
27
}
// namespace dynamic_config
28
29
USERVER_NAMESPACE_END
userver
dynamic_config
registered_config_meta.hpp
Generated on
for userver by
Doxygen
1.17.0