Documentation
¶
Index ¶
- type SimpleStatsModule
- type Stats
- 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)
- type StatsDConfig
- type StatsDModule
- func (module StatsDModule) Decrement(category, key string)
- func (module StatsDModule) DecrementBy(category, key string, value int64)
- func (module StatsDModule) Gauge(category, key string, v int64)
- func (module StatsDModule) Increment(category, key string)
- func (module StatsDModule) IncrementBy(category, key string, value int64)
- func (module StatsDModule) Name() string
- func (module StatsDModule) Start(cfg *Config)
- func (module StatsDModule) Stat(category, key string) int64
- func (module StatsDModule) StatsAll() *[]byte
- func (module StatsDModule) Stop() error
- func (module StatsDModule) Timing(category, key string, v int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleStatsModule ¶ added in v0.9.0
type SimpleStatsModule struct {
}
func (SimpleStatsModule) Name ¶ added in v0.9.0
func (module SimpleStatsModule) Name() string
func (SimpleStatsModule) Start ¶ added in v0.9.0
func (module SimpleStatsModule) Start(cfg *Config)
func (SimpleStatsModule) Stop ¶ added in v0.9.0
func (module SimpleStatsModule) Stop() error
type Stats ¶ added in v0.9.0
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 ¶ added in v0.9.0
func (*Stats) IncrementBy ¶ added in v0.9.0
type StatsDConfig ¶
type StatsDModule ¶
type StatsDModule struct {
}
func (StatsDModule) Decrement ¶
func (module StatsDModule) Decrement(category, key string)
func (StatsDModule) DecrementBy ¶
func (module StatsDModule) DecrementBy(category, key string, value int64)
func (StatsDModule) Gauge ¶
func (module StatsDModule) Gauge(category, key string, v int64)
func (StatsDModule) Increment ¶
func (module StatsDModule) Increment(category, key string)
func (StatsDModule) IncrementBy ¶
func (module StatsDModule) IncrementBy(category, key string, value int64)
func (StatsDModule) Name ¶
func (module StatsDModule) Name() string
func (StatsDModule) Start ¶
func (module StatsDModule) Start(cfg *Config)
func (StatsDModule) Stat ¶
func (module StatsDModule) Stat(category, key string) int64
func (StatsDModule) StatsAll ¶
func (module StatsDModule) StatsAll() *[]byte
func (StatsDModule) Stop ¶
func (module StatsDModule) Stop() error
func (StatsDModule) Timing ¶
func (module StatsDModule) Timing(category, key string, v int64)
Click to show internal directories.
Click to hide internal directories.