Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigOption ¶
type ConfigOption func(*haproxyClient)
func HTTPClient ¶
func HTTPClient(client *http.Client) ConfigOption
func Host ¶
func Host(host string) ConfigOption
func Path ¶
func Path(path string) ConfigOption
func Port ¶
func Port(port string) ConfigOption
type Stats ¶
type Stats struct {
Pxname string `json:"pxname"`
Svname string `json:"svname"`
Stot int `json:"stot"` // [LFBS]: cumulative number of sessions
Type string `json:"type"` // [LFBS]: type of proxy
Rate int `json:"rate"` // [.FBS]: number of sessions per second over last elapsed second
Bck int `json:"bck"` // [..BS]: number of backup servers (backend), server is backup (server)
Status string `json:"status"` // [LFBS]: status (UP/DOWN/NOLB/MAINT/MAINT(via)/MAINT(resolution)...)
Scur int `json:"scur"` // [LFBS]: current sessions
}
func Status ¶
func Status(opts ...ConfigOption) ([]*Stats, error)
Click to show internal directories.
Click to hide internal directories.