Documentation
¶
Overview ¶
Package haproxy writes the HAProxy configuration of a gateway, for HAProxy 3.2 and 3.4: it builds a view of the gateway, every value from the proxyfile in it already quoted, and executes the embedded template with it. Beside it goes the script the configuration loads, proxyfile.lua (script.go).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
Generate returns the HAProxy configuration and the script it loads, proxyfile.lua. Its error is a generator.Refused that names each value written into a regular expression or a program longer than HAProxy loads, by its key, a problem in the input (values); any other error means the gateway holds a form this generator does not write (notWritten), which HAProxy's declaration refuses before render calls Generate, a pattern that does not compile, which the reader refuses first, or that the template did not fill: a bug in proxyfile each time.
Types ¶
This section is empty.