6#include <userver/clients/dns/resolver.hpp>
7#include <userver/components/loggable_component_base.hpp>
8#include <userver/utils/statistics/entry.hpp>
10USERVER_NAMESPACE_BEGIN
12namespace clients::dns {
42class Component final :
public components::LoggableComponentBase {
46 static constexpr std::string_view kName =
"dns-client";
48 Component(
const components::ComponentConfig&,
49 const components::ComponentContext&);
51 Resolver& GetResolver();
53 static yaml_config::Schema GetStaticConfigSchema();
56 void Write(utils::statistics::Writer& writer);
59 utils::statistics::Entry statistics_holder_;
65inline constexpr bool components::kHasValidate<clients::dns::Component> =
true;