Versions in this module Expand all Collapse all v0 v0.2.1 Aug 15, 2017 v0.2.0 Jun 18, 2017 Changes in this version + const DefaultOtherMaxSize + const DefaultSCounterQpsPeriod + type SCounterBase struct + Cnt int64 + Name string + Other map[string]interface{} + Time string + func NewSCounterBase(name string) *SCounterBase + func (this *SCounterBase) Get() *SCounterBase + func (this *SCounterBase) PutOther(key string, value interface{}) bool + func (this *SCounterBase) Set(cnt int64) + func (this *SCounterBase) SetCnt(cnt int64) + type SCounterQps struct + Cnt int64 + Name string + Other map[string]interface{} + Qps int64 + Time string + func NewSCounterQps(name string) *SCounterQps + func (this *SCounterQps) Get() *SCounterQps + func (this *SCounterQps) Incr() + func (this *SCounterQps) IncrBy(incr int64) + func (this *SCounterQps) PutOther(key string, value interface{}) bool