mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 18:32:29 +00:00
19 lines
453 B
C++
19 lines
453 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include "DNSPTRResolver.h"
|
|
|
|
namespace DB
|
|
{
|
|
/*
|
|
* Provides a ready-to-use DNSPTRResolver instance.
|
|
* It hides 3rd party lib dependencies, handles initialization and lifetime.
|
|
* Since `get` function is static, it can be called from any context. Including cached static functions.
|
|
* */
|
|
class DNSPTRResolverProvider
|
|
{
|
|
public:
|
|
static std::shared_ptr<DNSPTRResolver> get();
|
|
};
|
|
}
|