package dns
import "go.mongodb.org/mongo-driver/x/mongo/driver/dns"
Index ¶
Variables ¶
DefaultResolver is a Resolver that uses the default Resolver from the net package.
Types ¶
type Resolver ¶
type Resolver struct { // Holds the functions to use for DNS lookups LookupSRV func(string, string, string) (string, []*net.SRV, error) LookupTXT func(string) ([]string, error) }
Resolver resolves DNS records.
func (*Resolver) GetConnectionArgsFromTXT ¶
GetConnectionArgsFromTXT gets the TXT record associated with the host and returns the connection arguments.
func (*Resolver) ParseHosts ¶
ParseHosts uses the srv string and service name to get the hosts.
Source Files ¶
dns.go
- Version
- v1.10.2
- Published
- Sep 6, 2022
- Platform
- windows/amd64
- Imports
- 5 packages
- Last checked
- 2 minutes ago –
Tools for package owners.