#include <userver/clients/dns/config.hpp>
Caching DNS resolver static configuration.
Definition at line 15 of file config.hpp.
 Collaboration diagram for clients::dns::ResolverConfig: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.   | |
| 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.
| 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.
| size_t clients::dns::ResolverConfig::cache_size_per_way {256} | 
Network cache size per way.
Definition at line 35 of file config.hpp.
| size_t clients::dns::ResolverConfig::cache_ways {16} | 
Network cache ways.
Definition at line 32 of file config.hpp.
| std::string clients::dns::ResolverConfig::file_path {"/etc/hosts"} | 
hosts file path
Definition at line 17 of file config.hpp.
| 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.
| int clients::dns::ResolverConfig::network_attempts {1} | 
Network query attempts.
Definition at line 26 of file config.hpp.
| 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.
| std::chrono::milliseconds clients::dns::ResolverConfig::network_timeout {std::chrono::seconds{1}} | 
Network query timeout.
Definition at line 23 of file config.hpp.