internalserver

package
v0.0.0-...-f4ec7ef Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InternalServer

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

InternalServer will collect from each handler the status and return it over HTTP

func New

New createse a new internal server instance

func (*InternalServer) Run

func (srv *InternalServer) Run()

Run starts a server on the specified port listening for the provided path

type InternalStatFunc

type InternalStatFunc func() (stats map[string]metric.InternalMetrics)

InternalStatFunc can be used to extract metrics

type ResponseFormat

type ResponseFormat struct {
	Memory     metric.InternalMetrics
	Handlers   map[string]metric.InternalMetrics
	Collectors map[string]metric.InternalMetrics
}

ResponseFormat is the structure of the response from an http request

Jump to

Keyboard shortcuts

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