Versions in this module Expand all Collapse all v0 v0.1.0 Jun 23, 2021 Changes in this version + type SimpleStatsConfig struct + Persist bool + type SimpleStatsModule struct + func (handler SimpleStatsModule) StatsAction(w http.ResponseWriter, req *http.Request) + func (module SimpleStatsModule) Name() string + func (module SimpleStatsModule) Setup(cfg *Config) + func (module SimpleStatsModule) Start() error + func (module SimpleStatsModule) Stop() error + type Stats struct + Data *map[string]map[string]int64 + ID string + func (s *Stats) Decrement(category, key string) + func (s *Stats) DecrementBy(category, key string, value int64) + func (s *Stats) Gauge(category, key string, v int64) + func (s *Stats) Increment(category, key string) + func (s *Stats) IncrementBy(category, key string, value int64) + func (s *Stats) Stat(category, key string) int64 + func (s *Stats) StatsAll() *[]byte + func (s *Stats) Timing(category, key string, v int64)