Github   Telegram
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
components::DynamicConfigFallbacks Class Referencefinal

Component that setup runtime configs based on fallbacks from file. More...

#include <userver/dynamic_config/fallbacks/component.hpp>

+ Inheritance diagram for components::DynamicConfigFallbacks:
+ Collaboration diagram for components::DynamicConfigFallbacks:

Public Member Functions

 DynamicConfigFallbacks (const ComponentConfig &, const ComponentContext &)
 
- Public Member Functions inherited from components::LoggableComponentBase
 LoggableComponentBase (const ComponentConfig &, const ComponentContext &)
 
 LoggableComponentBase (LoggableComponentBase &&)=delete
 
 LoggableComponentBase (const LoggableComponentBase &)=delete
 
 ~LoggableComponentBase () override=default
 
ComponentHealth GetComponentHealth () const override
 
void OnLoadingCancelled () override
 
void OnAllComponentsLoaded () override
 
void OnAllComponentsAreStopping () override
 

Static Public Member Functions

static yaml_config::Schema GetStaticConfigSchema ()
 
- Static Public Member Functions inherited from components::LoggableComponentBase
static yaml_config::Schema GetStaticConfigSchema ()
 

Static Public Attributes

static constexpr std::string_view kName = "dynamic-config-fallbacks"
 

Detailed Description

Component that setup runtime configs based on fallbacks from file.

Static options:

Name Description Default value
fallback-path a path to the fallback config to load the required config names from it -

If you use this component, you have to disable loading of other updaters (like DynamicConfigClientUpdater) as there must be only a single component that sets config values.

Static configuration example:

# yaml
dynamic-config-fallbacks:
fallback-path: $runtime_config_path

Definition at line 36 of file component.hpp.

Member Data Documentation

◆ kName

constexpr std::string_view components::DynamicConfigFallbacks::kName = "dynamic-config-fallbacks"
staticconstexpr

Definition at line 38 of file component.hpp.


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