roundrobin

package
v0.0.0-...-30b4a77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2016 License: BSD-3-Clause Imports: 4 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL