roundrobin

package
v0.1.0-beta Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoURLs = errors.New("no urls available")

Functions

This section is empty.

Types

type RoundRobin

type RoundRobin struct {
	// contains filtered or unexported fields
}

func New

func New(urls []*url.URL) *RoundRobin

func (*RoundRobin) Length

func (r *RoundRobin) Length() int

func (*RoundRobin) Pick

func (r *RoundRobin) Pick() (*url.URL, error)

Jump to

Keyboard shortcuts

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