loadbalancer

package
v0.0.0-...-23d3adf Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBalancer

func NewBalancer(strategy api.PickStrategy) api.LoadBalancer

func NewLoadBalancer

func NewLoadBalancer(strategy api.PickStrategy) api.LoadBalancer

Types

type LoadBalancer

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

func (*LoadBalancer) Add

func (this *LoadBalancer) Add(key interface{}, node *api.Endpoint)

func (*LoadBalancer) Pick

func (this *LoadBalancer) Pick(key interface{}) (*api.Endpoint, error)

func (*LoadBalancer) Remove

func (this *LoadBalancer) Remove(key interface{})

type WeightLoadBalancer

type WeightLoadBalancer struct {
}

func (*WeightLoadBalancer) Pick

func (this *WeightLoadBalancer) Pick(key interface{}) (*api.Endpoint, error)

Jump to

Keyboard shortcuts

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