lb

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2016 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReloadThreshold = time.Millisecond * 500
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadBalancer

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

func (*LoadBalancer) HandleEvent

func (l *LoadBalancer) HandleEvent(event *dockerclient.Event) error

func (*LoadBalancer) Name

func (l *LoadBalancer) Name() string

func (*LoadBalancer) ProxyContainers

func (l *LoadBalancer) ProxyContainers(name string) ([]dockerclient.Container, error)

func (*LoadBalancer) SaveConfig

func (l *LoadBalancer) SaveConfig(configPath string, cfg interface{}, proxyContainers []dockerclient.Container) error

type LoadBalancerBackend

type LoadBalancerBackend interface {
	Name() string
	ConfigPath() string
	GenerateProxyConfig(c []dockerclient.Container) (interface{}, error)
	Template() string
	Reload(proxyContainers []dockerclient.Container) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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