userver: userver/ugrpc/client/middlewares/baggage/component.hpp Source File
Loading...
Searching...
No Matches
component.hpp
1#pragma once
2
3/// @file userver/ugrpc/client/baggage/component.hpp
4/// @brief @copybrief ugrpc::client::middlewares::baggage::Component
5
6#include <userver/ugrpc/client/middlewares/base.hpp>
7
8USERVER_NAMESPACE_BEGIN
9
10/// Client baggage middleware
11namespace ugrpc::client::middlewares::baggage {
12
13/// @ingroup userver_components
14///
15/// @brief Component for gRPC client baggage
16class Component final : public MiddlewareComponentBase {
17 public:
18 /// @ingroup userver_component_names
19 /// @brief The default name of ugrpc::client::middlewares::baggage::Component
20 static constexpr std::string_view kName = "grpc-client-baggage";
21
22 Component(const components::ComponentConfig& config,
23 const components::ComponentContext& context);
24
25 std::shared_ptr<const MiddlewareFactoryBase> GetMiddlewareFactory() override;
26
27 static yaml_config::Schema GetStaticConfigSchema();
28};
29
30} // namespace ugrpc::client::middlewares::baggage
31
32USERVER_NAMESPACE_END