Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpmExporter ¶
type SpmStatsManager ¶
type SpmStatsManager struct {
// contains filtered or unexported fields
}
func NewSpmStatsManager ¶
func NewSpmStatsManager(d time.Duration, r SpmExporter) *SpmStatsManager
func (*SpmStatsManager) Spawn ¶
func (ssm *SpmStatsManager) Spawn(table ...string) *SpmOnce
type StatsExporter ¶
type StatsManager ¶
type StatsManager struct {
*TableStatsManager
}
func NewStatsManager ¶
func NewStatsManager(reportDura time.Duration, r StatsExporter) *StatsManager
func (*StatsManager) Add ¶
func (sm *StatsManager) Add(key string, value uint64)
func (*StatsManager) AddAvg ¶
func (sm *StatsManager) AddAvg(key string, value uint64)
func (*StatsManager) AddGauge ¶
func (sm *StatsManager) AddGauge(key string, cb func() uint64)
type TableStatsExporter ¶
func SingleExporter ¶
func SingleExporter(f func(tableX string, metricsX map[string]uint64)) TableStatsExporter
type TableStatsManager ¶
type TableStatsManager struct {
// contains filtered or unexported fields
}
func NewTableStatsManager ¶
func NewTableStatsManager(reportDura time.Duration, r TableStatsExporter) *TableStatsManager
Click to show internal directories.
Click to hide internal directories.