Documentation ¶
Overview ¶
Package dns is intended for internal use only. It is made available to facilitate use cases that require access to internal MongoDB driver functionality and state. The API of this package is not stable and there is no backward compatibility guarantee.
WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT NOTICE! USE WITH EXTREME CAUTION!
Index ¶
Constants ¶
This section is empty.
Variables ¶
DefaultResolver is a Resolver that uses the default Resolver from the net package.
Functions ¶
This section is empty.
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.
Click to show internal directories.
Click to hide internal directories.