userver: clients::dns::ResolverConfig Struct Reference
Loading...
Searching...
No Matches
clients::dns::ResolverConfig Struct Reference

#include <userver/clients/dns/config.hpp>

Detailed Description

Caching DNS resolver static configuration.

Definition at line 15 of file config.hpp.

Public Attributes

std::string file_path {"/etc/hosts"}
 hosts file path
 
std::chrono::milliseconds file_update_interval {std::chrono::minutes{5}}
 hosts file update interval
 
std::chrono::milliseconds network_timeout {std::chrono::seconds{1}}
 Network query timeout.
 
int network_attempts {1}
 Network query attempts.
 
std::vector< std::string > network_custom_servers
 Custom name servers list (system-wide resolvers used if empty)
 
size_t cache_ways {16}
 Network cache ways.
 
size_t cache_size_per_way {256}
 Network cache size per way.
 
std::chrono::milliseconds cache_max_reply_ttl {std::chrono::minutes{5}}
 Network cache upper reply TTL limit.
 
std::chrono::milliseconds cache_failure_ttl {std::chrono::seconds{5}}
 Network cache failure TTL.
 

Member Data Documentation

◆ cache_failure_ttl

std::chrono::milliseconds clients::dns::ResolverConfig::cache_failure_ttl {std::chrono::seconds{5}}

Network cache failure TTL.

Definition at line 41 of file config.hpp.

◆ cache_max_reply_ttl

std::chrono::milliseconds clients::dns::ResolverConfig::cache_max_reply_ttl {std::chrono::minutes{5}}

Network cache upper reply TTL limit.

Definition at line 38 of file config.hpp.

◆ cache_size_per_way

size_t clients::dns::ResolverConfig::cache_size_per_way {256}

Network cache size per way.

Definition at line 35 of file config.hpp.

◆ cache_ways

size_t clients::dns::ResolverConfig::cache_ways {16}

Network cache ways.

Definition at line 32 of file config.hpp.

◆ file_path

std::string clients::dns::ResolverConfig::file_path {"/etc/hosts"}

hosts file path

Definition at line 17 of file config.hpp.

◆ file_update_interval

std::chrono::milliseconds clients::dns::ResolverConfig::file_update_interval {std::chrono::minutes{5}}

hosts file update interval

Definition at line 20 of file config.hpp.

◆ network_attempts

int clients::dns::ResolverConfig::network_attempts {1}

Network query attempts.

Definition at line 26 of file config.hpp.

◆ network_custom_servers

std::vector<std::string> clients::dns::ResolverConfig::network_custom_servers

Custom name servers list (system-wide resolvers used if empty)

Definition at line 29 of file config.hpp.

◆ network_timeout

std::chrono::milliseconds clients::dns::ResolverConfig::network_timeout {std::chrono::seconds{1}}

Network query timeout.

Definition at line 23 of file config.hpp.


The documentation for this struct was generated from the following file: