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