Documentation
¶
Index ¶
- func Del(key string)
- func Reset()
- func Set(key string, value ValueType)
- type StatsCollector
- func (s *StatsCollector) Add(key string, delta ValueType) (v ValueType)
- func (s *StatsCollector) Data() StatsType
- func (s *StatsCollector) Del(key string)
- func (s *StatsCollector) Get(key string) (v ValueType)
- func (s *StatsCollector) Reset()
- func (s *StatsCollector) Set(key string, value ValueType)
- type StatsType
- type ValueType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StatsCollector ¶
type StatsCollector struct {
// contains filtered or unexported fields
}
func New ¶
func New() *StatsCollector
func (*StatsCollector) Add ¶
func (s *StatsCollector) Add(key string, delta ValueType) (v ValueType)
func (*StatsCollector) Data ¶
func (s *StatsCollector) Data() StatsType
func (*StatsCollector) Del ¶
func (s *StatsCollector) Del(key string)
func (*StatsCollector) Get ¶
func (s *StatsCollector) Get(key string) (v ValueType)
func (*StatsCollector) Reset ¶
func (s *StatsCollector) Reset()
func (*StatsCollector) Set ¶
func (s *StatsCollector) Set(key string, value ValueType)
Click to show internal directories.
Click to hide internal directories.