package
Version:
v0.0.0-...-c726bdf
Opens a new window with list of versions in this module.
Published: Jan 3, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package stat implements a simple stats aggregator.
Stat type includes a statted value and its timestamp.
type Stats struct {
Aggregated chan Stat
}
Stats type structure enabling statting facilities.
NewStats constructor for Stats
func (s *Stats) Process()
Process call to start processing statistics
StatEvent aggregates an event with value v
Stop call to stop processing statistics. Once stopped, Stats cannot be restarted.
Update update the expvar parameter with the last aggregated value
Source Files
¶
Click to show internal directories.
Click to hide internal directories.