Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDNSMalfunction = errors.New("DNS is not working")
Functions ¶
Types ¶
type Settings ¶
type Settings struct { // Resolver to use for the check. // It defaults to the default Go resolver. Resolver *net.Resolver // HostToResolve is the host to resolve for the check. // It defaults to github.com and cannot be the empty string. HostToResolve string // MaxTries is the maximum number of tries // before returning an error. // It defaults to 10 and cannot be 0. MaxTries int // WaitTime is the duration to wait between // each failed try. It defaults to 300ms // and cannot be nil in the internal state. WaitTime *time.Duration // AddWaitTime is the duration to add to the wait // time after each failed try. // It defaults to 100ms and cannot be nil // in the internal state. AddWaitTime *time.Duration }
func (*Settings) SetDefaults ¶
func (s *Settings) SetDefaults()
Click to show internal directories.
Click to hide internal directories.