statgraph

package
v0.0.0-...-ddc4f16 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(stats *httpstat.HTTPStats) http.Handler

New returns a new http handler which allows viewing of httpstat data using png/svg rendered graphs. Note that if history isn't enabled for the requested HTTPStats, New will panic. History must be enabled.

The following endpoints are registered with the return handler:

/{requests,rps,latency}
/{requests,rps,latency}.{svg,png}

For example the following returns the average latency in svg form:

/latency.svg

When viewing the main registered endpoint (/), you can view all three SVG versions of the graphs, which get updated automatically every History.Resolution.

Types

This section is empty.

Jump to

Keyboard shortcuts

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