balancing

package
v0.0.0-...-4714e11 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Balancer

type Balancer interface {
	BalanceRequest(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
}

type RoundRobinBalancer

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

func NewLoadBalancer

func NewLoadBalancer(loadBalancer config.LoadBalancer) *RoundRobinBalancer

func (*RoundRobinBalancer) BalanceRequest

func (balancer *RoundRobinBalancer) BalanceRequest(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

Jump to

Keyboard shortcuts

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