Documentation ¶
Overview ¶
Package roundrobin implements the round-robin server selection used in the configclient package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerList ¶
type ServerList []server
A ServerList is a list of servers.
func ParseServers ¶
func ParseServers(servers string) ServerList
ParseServers parses a string describing a list of servers.
func (ServerList) Len ¶
func (sl ServerList) Len() int
func (ServerList) Less ¶
func (sl ServerList) Less(i, j int) bool
func (ServerList) MakeStrings ¶
func (sl ServerList) MakeStrings() []string
MakeStrings returns all URLs in the ServerList.
func (ServerList) Order ¶
func (sl ServerList) Order() []string
Order orders the ServerList according to priority.
func (ServerList) Swap ¶
func (sl ServerList) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.