mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
19 lines
336 B
C++
19 lines
336 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <unordered_set>
|
|
|
|
namespace DB
|
|
{
|
|
struct DNSPTRResolver
|
|
{
|
|
|
|
virtual ~DNSPTRResolver() = default;
|
|
|
|
virtual std::unordered_set<std::string> resolve(const std::string & ip) = 0;
|
|
|
|
virtual std::unordered_set<std::string> resolve_v6(const std::string & ip) = 0;
|
|
|
|
};
|
|
}
|