balance

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Balance

func Balance(name string, clients []string) (string, error)

balance

func RegisterBalancer

func RegisterBalancer(name string, balancer PinkBalancer)

Types

type PinkBalanceManaged

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

type PinkBalancer

type PinkBalancer interface {
	// balance
	Balance(clients []string) (string, error)
}

type RoundRobinBalancer

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

round_robin balancer

func (*RoundRobinBalancer) Balance

func (rr *RoundRobinBalancer) Balance(clients []string) (string, error)

Jump to

Keyboard shortcuts

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