haproxy

package
v0.0.0-...-c12f8f0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package haproxy gathers haproxy related data from a host.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSVtoJSON

func CSVtoJSON(csvInput string) ([]byte, error)

CSVtoJSON parses CSV to JSON This function is very specific to parsing HAProxy output.

func NewHAProxyStats

func NewHAProxyStats() readers.IReader

Types

type HAProxyStats

type HAProxyStats struct {
	Data []map[string]interface{}
	Url  string
}

func (*HAProxyStats) Run

func (hap *HAProxyStats) Run() error

Run executes the writer.

func (*HAProxyStats) ToJson

func (hap *HAProxyStats) ToJson() ([]byte, error)

ToJson serialize Data field to JSON.

Jump to

Keyboard shortcuts

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