Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
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.
Click to show internal directories.
Click to hide internal directories.