collector

package
v1.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ftoi

func Ftoi(in map[string]interface{}) map[string]interface{}

Ftoi returns a copy of input map where float values are casted to int values. The conversion is applied to nested maps and arrays as well.

func HTTPClient

func HTTPClient() *http.Client

HTTPClient returns a net/http client that respects proxy settings from the environmnent. Supported environmnent variables: "http_proxy", "https_proxy", "all_proxy", and "no_proxy".

Types

type Collector

type Collector interface {
	// Collect status from the given url.
	Collect(u url.URL) (map[string]interface{}, error)
}

Collector collects status from Nginx status module.

func NewPlusCollector

func NewPlusCollector() Collector

NewPlusCollector constructs a new PlusCollector.

func NewStubCollector

func NewStubCollector() Collector

NewStubCollector constructs a new StubCollector.

type PlusCollector

type PlusCollector struct {
	// contains filtered or unexported fields
}

PlusCollector is a Collector that collects Nginx Plus status page.

func (*PlusCollector) Collect

func (c *PlusCollector) Collect(u url.URL) (map[string]interface{}, error)

Collect Nginx Plus status from given url.

type StubCollector

type StubCollector struct {
	// contains filtered or unexported fields
}

StubCollector is a Collector that collects Nginx stub status page.

func (*StubCollector) Collect

func (c *StubCollector) Collect(u url.URL) (map[string]interface{}, error)

Collect Nginx stub status from given url.

Jump to

Keyboard shortcuts

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