Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMinFound = errors.New("not enough hosts found") ErrMaxFailRatio = errors.New("maximum failure ratio reached") )
View Source
var ( ErrMaxNoNew = errors.New("reached the maximum number of no new update") ErrMaxFails = errors.New("reached the maximum number of consecutive failures") )
Functions ¶
This section is empty.
Types ¶
type Parallel ¶
type Parallel struct {
// contains filtered or unexported fields
}
func NewParallelResolver ¶
type ParallelSettings ¶
type ParallelSettings struct { // Hosts to resolve in parallel. Hosts []string Repeat RepeatSettings FailEarly bool // Maximum ratio of the hosts failing DNS resolution // divided by the total number of hosts requested. // This value is between 0 and 1. Note this is only // applicable if FailEarly is not set to true. MaxFailRatio float64 }
Click to show internal directories.
Click to hide internal directories.