//
pkg.gl
Category
github.com/tmaxmax/go-sse
cmd
complex
package
0.9.0-pre.2
Repository:
https://github.com/tmaxmax/go-sse.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
15
Dependents
0
Files
272 SLOC
#
Functions
Add
Add adds the given value to a metric.
Inc
Inc increments the given metric.
Range
Range loops through all metrics and calls the given function for each metric.
Snapshot
Snapshot returns a map containing all the metrics at the time of snapshotting.
#
Variables
SnapshotHTTPEndpoint
SnapshotHTTPEndpoint is an HTTP handler that sends a JSON representation of the metrics snapshot to the request initiator.