loadbalance

package
Version: v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2014 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Load balancers control how requests are distributed among multiple endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadBalancer

type LoadBalancer interface {
	// This function will be called each time locaiton would need to choose the next endpoint for the request
	NextEndpoint(req Request) (Endpoint, error)
	// Load balancer can intercept the request
	Middleware
	// Load balancer may observe the request stats to get some runtime metrics
	Observer
}

Source Files

Directories

Path Synopsis
Dynamic weighted round robin load balancer
Dynamic weighted round robin load balancer

Jump to

Keyboard shortcuts

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