Documentation
¶
Overview ¶
Package dns implements a dns resolver to be installed as the default resolver in grpc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EnableSRVLookups = false
EnableSRVLookups controls whether the DNS resolver attempts to fetch gRPCLB addresses from SRV records. Must not be changed after init time.
View Source
var ResolvingTimeout = 30 * time.Second
ResolvingTimeout specifies the maximum duration for a DNS resolution request. If the timeout expires before a response is received, the request will be canceled.
It is recommended to set this value at application startup. Avoid modifying this variable after initialization as it's not thread-safe for concurrent modification.
Functions ¶
func NewBuilder ¶
NewBuilder creates a dnsBuilder which is used to factory DNS resolvers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.