Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ftoi ¶
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 ¶
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.
type StubCollector ¶
type StubCollector struct {
// contains filtered or unexported fields
}
StubCollector is a Collector that collects Nginx stub status page.
Click to show internal directories.
Click to hide internal directories.