Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fastest ¶
type Fastest struct {
// contains filtered or unexported fields
}
Fastest sorts providers by response time.
func NewFastest ¶
NewFastest creates a new Fastest selector.
type Roundrobin ¶
type Roundrobin struct {
// contains filtered or unexported fields
}
Roundrobin sorts providers based on Round-robin algorithm.
func NewRoundrobin ¶
func NewRoundrobin(providers []string) *Roundrobin
NewRoundrobin creates a new Roundrobin selector.
Click to show internal directories.
Click to hide internal directories.