Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrInvalidAgentCheckResponse is returned when the response to an agent check request is invalid. ErrInvalidAgentCheckResponse = errors.New("invalid agent check response value") )
Functions ¶
func ValidateAgentCheckResponse ¶
ValidateAgentCheckResponse validates the response, making sure it is a valid response to an agent check request. See the docs here https://www.haproxy.com/documentation/haproxy-configuration-manual/latest/#5.2-agent-check
Types ¶
type App ¶
App is a hareply application. An application reads responses from a file and serves them over TCP. It can only be started once.
func (*App) ListenAddr ¶
ListenAddr returns the address the hareply application is listening on. This will return `nil` if the application is not currently serving.
type Option ¶
type Option func(*App)
Option is a configuration option for the hareply application.
func WithFS ¶
WithFS sets the file system to use for the hareply application. It defaults to the host file system.
func WithHost ¶
WithHost sets the host to listen on for the hareply application. It defaults to an empty string `""` which means "all interfaces".
func WithLogger ¶
WithLogger sets the logger to use for the hareply application. It defaults to `slog.Default()“.