utils

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableReload added in v0.0.8

func DisableReload() bool

func LoadEnvFile added in v0.0.2

func LoadEnvFile() []string

LoadEnvFile load additional dynamic environment variables from a file which contains them in the form "key=value".

func LookupExecutablePathAbs

func LookupExecutablePathAbs(executable string) (string, error)

LookupExecutablePathAbs lookup the $PATH to find the absolut path of an executable

func LookupHAProxyConfigFile

func LookupHAProxyConfigFile() string

LookupHAProxyConfigFile lookup the program arguments to find the config file path (default: "/etc/haproxy/haproxy.cfg")

func LookupHAProxySocketPath

func LookupHAProxySocketPath() string

LookupHAProxySocketPath lookup the value of HAPROXY_SOCKET environment variable (default:"/var/run/haproxy.sock")

func LookupWatchPath added in v0.0.6

func LookupWatchPath() string

LookupWatchPath return WATCH_PATH if defined

Types

This section is empty.

Jump to

Keyboard shortcuts

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