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: 3 Imported by: 0

Documentation

Overview

Package control provides controller extension modules

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(addr string, config *config.Config) error

ListenAndServe is a wrapper for http.ListenAndServe that starts handlers for all registered control modules prior to starting the server. The server caches succesful responses forever.

func Marshal

func Marshal(w http.ResponseWriter, view interface{})

Marshal is used by modules to marshal response to a view request.

func Register

func Register(update, handle func(*config.Config) error)

Register is used by modules to register themselves.

The update function updates the config to include module-specific settings. It typically decodes ExtraRaw fields, storing decoded data in the corresponding Extra field.

The handle function registers module-specific HTTP handlers. It is passed a config that has already been updated using the update function.

Types

This section is empty.

Directories

Path Synopsis
Package control handles config requests from collect-jmx.
Package control handles config requests from collect-jmx.
Package control implements control handlers for collect-statse(8)
Package control implements control handlers for collect-statse(8)
Package control handles config requests from tsp-forwarder.
Package control handles config requests from tsp-forwarder.

Jump to

Keyboard shortcuts

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