Help us shape the future of Go! Take the 2026 Go Developer Survey

env

package
v1.11.12 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaults

func SetDefaults(defaults *models.Defaults)

SetDefaults will set default values for Defaults section config.

func SetGlobal

func SetGlobal(global *models.Global, logTargets *models.LogTargets, env Env)

SetGlobal will set default values for Global section config.

Types

type Env

type Env struct {
	Certs certs.Env
	Proxies
	CfgDir         string
	RuntimeSocket  string
	MasterSocket   string
	PIDFile        string
	AuxCFGFile     string
	RuntimeDir     string
	StateDir       string
	PatternDir     string
	ErrFileDir     string
	MapsDir        string
	Binary         string
	MainCFGFile    string
	MainCFGRaw     []byte
	ControllerPort int
}

Env contains Directories and files required by haproxy

func (*Env) Init

func (env *Env) Init(osArgs utils.OSArgs) (err error)

Init initializes HAProxy Environment

type Proxies

type Proxies struct {
	FrontHTTP  string
	FrontHTTPS string
	FrontSSL   string
	BackSSL    string
}

Proxies contains names of the main proxies of haproxy config

Jump to

Keyboard shortcuts

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