Forward declarations for components::ComponentContext and components::ComponentConfig; function components::GetCurrentComponentName() and components::GetFsTaskProcessor().
Definition in file component_fwd.hpp.
Go to the source code of this file.
#include <string_view>#include <userver/engine/task/task_processor_fwd.hpp>#include <userver/utils/resource_scopes_fwd.hpp>Namespaces | |
| namespace | components |
| Contains functions and types to start a userver based service/tool. | |
Functions | |
| std::string_view | components::GetCurrentComponentName (const ComponentContext &context) |
| Equivalent to components::ComponentContext::GetComponentName, but works with forward declaration of the components::ComponentContext. | |
| utils::ResourceScopeStorage & | components::GetResourceScopes (const ComponentContext &context) |
| Equivalent to components::ComponentContext::Scopes, but works with forward declaration of the components::ComponentContext. | |
| engine::TaskProcessor & | components::GetFsTaskProcessor (const ComponentConfig &config, const ComponentContext &context) |
| Returns the config["fs-task-processor"] if it is set; otherwise returns the default blocking task processor that was set in components::ManagerControllerComponent. | |