# Functions
FormatServiceForTemplates adds addtional variables to service that is used by templates.
GetBackTemplate returns template used to create a service backend TODO: Change to private function when actions.GetTemplates is moved to the proxy package TODO: Create a single string for the template TODO: Unify HTTP and HTTPS into a single string TODO: Move to a file.
GetServiceFromMap returns Service struct by extracting request parameters.
GetServiceFromProvider returns Service by extracting parameters from ServiceParameterProvider.
Glob tests a string against the glob pattern.
IsValidReconf validates whether reconfigure data is valid.
NewHaProxy returns an instance of the proxy.
# Variables
Instance is a singleton containing an instance of the proxy.
LookupHost overwrites net.LookupHost so that it can be mocked from other packages.
ReadFile overwrites ioutil.ReadFile so that it can be mocked from other packages.
# Structs
Data contains the information about all the services.
HaProxy contains structure used by HAProxy implementation.
Service contains description of a service that should be added to the proxy configuration.
ServiceDest holds data used to generate proxy configuration.
User data required for authentication.
UserAgent holds data used to generate proxy configuration.
# Interfaces
ServiceParameterProvider defines common interface for translating parameters into structs.
# Type aliases
Services contains the list of services used inside the proxy.