Github   Telegram
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
run.hpp File Reference

Functions to start a service or tool with the specified config and components::ComponentList. More...

#include <string>
#include <userver/logging/format.hpp>
#include <userver/utils/strong_typedef.hpp>
#include "component_list.hpp"
+ Include dependency graph for run.hpp:

Go to the source code of this file.

Classes

struct  components::InMemoryConfig
 

Namespaces

namespace  components
 Contains functions and types to start a userver based service/tool.
 

Functions

void components::Run (const std::string &config_path, const std::optional< std::string > &config_vars_path, const std::optional< std::string > &config_vars_override_path, const ComponentList &component_list, const std::string &init_log_path={}, logging::Format format=logging::Format::kTskv)
 
void components::Run (const InMemoryConfig &config, const ComponentList &component_list, const std::string &init_log_path={}, logging::Format format=logging::Format::kTskv)
 
void components::RunOnce (const std::string &config_path, const std::optional< std::string > &config_vars_path, const std::optional< std::string > &config_vars_override_path, const ComponentList &component_list, const std::string &init_log_path={}, logging::Format format=logging::Format::kTskv)
 
void components::RunOnce (const InMemoryConfig &config, const ComponentList &component_list, const std::string &init_log_path={}, logging::Format format=logging::Format::kTskv)
 

Detailed Description

Functions to start a service or tool with the specified config and components::ComponentList.

Definition in file run.hpp.