Back to godoc.org
github.com/lafikl/liblb

package liblb

v0.0.0 (2321f9d)
Latest Go to latest
Published: Jul 2, 2017 | License: MIT | Module: github.com/lafikl/liblb

Index

Variables

var ErrNoHost = errors.New("host not found")

type Balancer

type Balancer interface {
	New(hosts ...string)
	Add(host string)
	Remove(host string)
	Balance() (string, error)
}

type KeyedBalancer

type KeyedBalancer interface {
	New(hosts ...string)
	Add(host string)
	Remove(host string)
	Balance(key string) (string, error)
}
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier