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 if left unset. Resolver *net.Resolver // HostToResolve is the host to resolve for the check. // It defaults to github.com if left unset. HostToResolve string // MaxTries is the maximum number of tries // before returning an error. // It defaults to 10 if left unset. MaxTries int // WaitTime is the duration to wait between // each failed try. It defaults to 300ms // if left unset. WaitTime time.Duration // AddWaitTime is the duration to add to the wait // time after each failed try. // It defaults to 100ms if left unset. AddWaitTime time.Duration }
func (*Settings) SetDefaults ¶
func (s *Settings) SetDefaults()
Click to show internal directories.
Click to hide internal directories.