haproxy

package
v0.0.0-...-fe2ccbf Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2016 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CheckCommand   string `envconfig:"check_command"`
	ConfigFilePath string `envconfig:"config_file_path"`
	Enabled        bool
	ReloadCommand  string `envconfig:"reload_command"`
	TemplatePath   string `envconfig:"template_path"`
}

type HAProxyGenerator

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

func NewGenerator

func NewGenerator(c *Config) *HAProxyGenerator

Create a new HAProxyGenerator, reading configuration from environment variables.

func (*HAProxyGenerator) Generate

func (h *HAProxyGenerator) Generate(services []*types.Service) error

Creates a new HAproxy config file and reloads HAProxy

Jump to

Keyboard shortcuts

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