userver: dynamic_config::Diff Struct Reference
Loading...
Searching...
No Matches
dynamic_config::Diff Struct Referencefinal

#include <userver/dynamic_config/source.hpp>

Detailed Description

Helper class for subscribing to dynamic-config updates with a custom callback.

Stores information about the last update that occurred.

Parameters
previousdynamic_config::Snapshot of the previous config or std::nullopt if this update event is the first for the subscriber.

Definition at line 57 of file source.hpp.

Public Member Functions

template<typename... Keys>
bool HasConfigsChanged (const Keys &... keys) const
 

Public Attributes

std::optional< Snapshotprevious
 
Snapshot current
 

Member Function Documentation

◆ HasConfigsChanged()

template<typename... Keys>
bool dynamic_config::Diff::HasConfigsChanged ( const Keys &... keys) const
inline

Definition at line 62 of file source.hpp.

Member Data Documentation

◆ current

Snapshot dynamic_config::Diff::current

Definition at line 59 of file source.hpp.

◆ previous

std::optional<Snapshot> dynamic_config::Diff::previous

Definition at line 58 of file source.hpp.


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