roundrobin

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoURLs = errors.New("roundrobin: 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