package
0.9.0-pre.2
Repository: https://github.com/tmaxmax/go-sse.git
Documentation: pkg.go.dev

# Functions

Add adds the given value to a metric.
Inc increments the given metric.
Range loops through all metrics and calls the given function for each metric.
Snapshot returns a map containing all the metrics at the time of snapshotting.

# Variables

SnapshotHTTPEndpoint is an HTTP handler that sends a JSON representation of the metrics snapshot to the request initiator.