Documentation ¶ Index ¶ Variables func New(settings Settings) (resolver *net.Resolver, err error) type Settings Constants ¶ This section is empty. Variables ¶ View Source var ( ErrAddressHostEmpty = errors.New("address host is empty") ErrAddressPortEmpty = errors.New("address port is empty") ErrTimeoutTooLow = errors.New("timeout is too low") ) Functions ¶ func New ¶ func New(settings Settings) (resolver *net.Resolver, err error) Types ¶ type Settings ¶ type Settings struct { Address *string Timeout time.Duration } Source Files ¶ View all Source files resolver.go settings.go Click to show internal directories. Click to hide internal directories.