loadbalancer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Image                  = "haproxy-alpine"
	DefaultImageRepository = "haproxytech"
	DefaultImageTag        = "2.4"
	ConfigPath             = "/usr/local/etc/haproxy/haproxy.cfg"
)

Variables

This section is empty.

Functions

func Config

func Config(data *ConfigData) (config string, err error)

Types

type ConfigData

type ConfigData struct {
	ControlPlanePort int
	BackendServers   map[string]string
	EnableStats      bool
}

Jump to

Keyboard shortcuts

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