control

package
v0.0.0-...-bd03ed3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package control implements control handlers for collect-statse(8)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(config *config.Config) error

Handle installs the HTTP handler.

func Update

func Update(config_ *config.Config) error

Update decodes the collect-statse(8) parts of the config.

Types

type AggregatorConfig

type AggregatorConfig struct {
	SnapshotInterval string `json:",omitempty"`
}

type ForwarderConfig

type ForwarderConfig struct {
	AggregatorHost string  `json:",omitempty"`
	Filter         []*Rule `json:",omitempty"`
}

type HostConfig

type HostConfig struct {
	XMLName    xml.Name `xml:"statse"`
	Aggregator bool     `xml:"aggregator,attr"`
	Interval   string   `xml:"interval,attr"`
}

type Key

type Key struct {
	Program, Host string
}

type Rule

type Rule struct {
	Match []string `json:",omitempty"`
	Set   []string `json:",omitempty"`
	Block bool     `json:",omitempty"`
}

type View

type View struct {
	Forwarder  ForwarderConfig
	Aggregator *AggregatorConfig `json:",omitempty"`
}

Jump to

Keyboard shortcuts

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