ClickHouse/src/Common/DNSPTRResolverProvider.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 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();
};
}