userver: userver/components/run.hpp Source File
Loading...
Searching...
No Matches
run.hpp
Go to the documentation of this file.
1#pragma once
2
6
7#include <string>
8
11
12USERVER_NAMESPACE_BEGIN
13
15namespace components {
16
19struct InMemoryConfig : utils::StrongTypedef<InMemoryConfig, std::string> {
20 using StrongTypedef::StrongTypedef;
21};
22
27void Run(
28 const std::string& config_path,
29 const std::optional<std::string>& config_vars_path,
30 const std::optional<std::string>& config_vars_override_path,
31 const ComponentList& component_list
32);
33
38void Run(const InMemoryConfig& config, const ComponentList& component_list);
39
48 const std::string& config_path,
49 const std::optional<std::string>& config_vars_path,
50 const std::optional<std::string>& config_vars_override_path,
51 const ComponentList& component_list
52);
53
61void RunOnce(const InMemoryConfig& config, const ComponentList& component_list);
62
66
67namespace impl {
68
69// Composes a single static config schema from all components.
70std::string GetStaticConfigSchema(const ComponentList& component_list);
71
72std::string GetDynamicConfigDefaults();
73
74} // namespace impl
75
76} // namespace components
77
78USERVER_NAMESPACE_END