8#include <userver/components/component_config.hpp>
9#include <userver/components/component_context.hpp>
10#include <userver/ugrpc/server/server.hpp>
11#include <userver/ugrpc/server/service_component_base.hpp>
13USERVER_NAMESPACE_BEGIN
20class ProtoServerReflection;
24 static constexpr std::string_view kName =
"grpc-reflection-service";
26 ReflectionServiceComponent(
const components::ComponentConfig& config,
const components::ComponentContext& context);
28 ~ReflectionServiceComponent()
override;
31 void OnAllComponentsLoaded()
override;
35 void AddService(std::string_view service_name);
38 ugrpc::server::Server& ugrpc_server_;
39 std::atomic<
bool> ready_{
false};