backends

package
v0.0.2-0...-b0769f2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: AGPL-3.0-or-later Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	String() string
}

type Backends

type Backends interface {
	Choose() Backend
	Len() int
	Add(string)
	Remove(string)
}

func Build

func Build(algorithm string, specs []string) Backends

func NewRoundRobin

func NewRoundRobin(strs []string) Backends

type Factory

type Factory func([]string) Backends

type RoundRobin

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

func (*RoundRobin) Add

func (rr *RoundRobin) Add(s string)

func (*RoundRobin) Choose

func (rr *RoundRobin) Choose() Backend

func (*RoundRobin) Len

func (rr *RoundRobin) Len() int

func (*RoundRobin) Remove

func (rr *RoundRobin) Remove(s string)

Jump to

Keyboard shortcuts

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