haproxy

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCsvHosts

func ParseCsvHosts(csv string, poolName string) (hosts []string, err error)

ParseCsvHosts reads HAProxy CSV text and returns lists of hosts participating in the given pool (backend). See comment for ParseHosts

func ParseHosts

func ParseHosts(csvLines []string, poolName string) (hosts []string, err error)

ParseHosts reads HAProxy CSV lines and returns lists of hosts participating in the given pool (backend) Returned are all non-disabled hosts in given backend. Thus, a NOLB is skipped; any UP or DOWN hosts are returned. Such list indicates the hosts which can be expected to be active, which is then the list freno will probe.

func Read

func Read(host string, port int) (csv string, err error)

Read will read HAProxy URI and return with the CSV text

Types

This section is empty.

Jump to

Keyboard shortcuts

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