ClickHouse/src/Common/DNSPTRResolverProvider.h

18 lines
453 B
C++
Raw Normal View History

#pragma once
#include <memory>
#include "DNSPTRResolver.h"
namespace DB {
2022-07-12 17:31:33 +00:00
/*
* 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();
};
}