Documentation ¶
Index ¶
- Constants
- type SimpleStatsConfig
- type SimpleStatsModule
- func (handler SimpleStatsModule) BufferItemStatsAction(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
- func (handler SimpleStatsModule) DeleteDataFile(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
- func (handler SimpleStatsModule) GoroutinesAction(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
- func (handler SimpleStatsModule) ListDirFs(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
- func (module SimpleStatsModule) Name() string
- func (handler SimpleStatsModule) PrometheusStatsAction(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
- func (module *SimpleStatsModule) Setup()
- func (module *SimpleStatsModule) Start() error
- func (handler SimpleStatsModule) StatsAction(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
- func (module *SimpleStatsModule) Stop() error
- type StatItem
- type Stats
- func (s *Stats) Absolute(category, key string, value int64)
- 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) GetTimestamp(category, key string) (time.Time, error)
- func (s *Stats) Increment(category, key string)
- func (s *Stats) IncrementBy(category, key string, value int64)
- func (s *Stats) RecordTimestamp(category, key string, v time.Time)
- func (s *Stats) Stat(category, key string) int64
- func (s *Stats) StatsAll() string
- func (s *Stats) Timing(category, key string, v int64)
Constants ¶
View Source
const Decr = "decr"
View Source
const Incr = "incr"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleStatsConfig ¶
type SimpleStatsModule ¶
func (SimpleStatsModule) BufferItemStatsAction ¶
func (handler SimpleStatsModule) BufferItemStatsAction(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
func (SimpleStatsModule) DeleteDataFile ¶
func (handler SimpleStatsModule) DeleteDataFile(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
func (SimpleStatsModule) GoroutinesAction ¶
func (handler SimpleStatsModule) GoroutinesAction(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
func (SimpleStatsModule) ListDirFs ¶
func (handler SimpleStatsModule) ListDirFs(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
func (SimpleStatsModule) Name ¶
func (module SimpleStatsModule) Name() string
func (SimpleStatsModule) PrometheusStatsAction ¶
func (handler SimpleStatsModule) PrometheusStatsAction(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
StatsAction return stats information
func (*SimpleStatsModule) Setup ¶
func (module *SimpleStatsModule) Setup()
func (*SimpleStatsModule) Start ¶
func (module *SimpleStatsModule) Start() error
func (SimpleStatsModule) StatsAction ¶
func (handler SimpleStatsModule) StatsAction(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
StatsAction return stats information
func (*SimpleStatsModule) Stop ¶
func (module *SimpleStatsModule) Stop() error
type Stats ¶
type Stats struct { ID string `storm:"id,unique" json:"id" gorm:"not null;unique;primary_key"` Data *map[string]map[string]int64 `storm:"inline" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Stats) DecrementBy ¶
func (*Stats) IncrementBy ¶
Click to show internal directories.
Click to hide internal directories.