info.go
func (h *HAProxyClient) Info() (*Info, error) {
	res, err := h.RunCommand("show info")
	if err != nil {
		return nil, err
	}
	info := &Info{}
	err = kvcodec.Unmarshal(res, info)
	if err != nil {
		return nil, fmt.Errorf("error decoding response: %s", err)
	}
	return info, nil
}
func (h *HAProxyClient) Info() (*Info, error) {
	res, err := h.RunCommand("show info")
	if err != nil {
		return nil, err
	}
	info := &Info{}
	err = kvcodec.Unmarshal(res, info)
	if err != nil {
		return nil, fmt.Errorf("error decoding response: %s", err)
	}
	return info, nil
}
func ( h * HAProxyClient ) Info ( ) ( * Info , error ) { res , err := h . RunCommand ( " " ) if err != nil { return nil , err } info := & Info { } err = kvcodec . Unmarshal ( res , info ) if err != nil { return nil , fmt . Errorf ( " " , err ) } return info , nil }
// Equivalent to HAProxy "show info" command.
Equivalent to HAProxy show info command .