lb

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2018 License: Apache-2.0 Imports: 23 Imported by: 3

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadBalancer

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

func NewLoadBalancer

func NewLoadBalancer(c *config.ExtensionConfig, client *client.Client) (*LoadBalancer, error)

func (*LoadBalancer) HandleEvent

func (l *LoadBalancer) HandleEvent(event *events.Message) error

func (*LoadBalancer) Name

func (l *LoadBalancer) Name() string

func (*LoadBalancer) ProxyContainers

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

func (*LoadBalancer) SaveConfig

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

type LoadBalancerBackend

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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