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