Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultManager = NewTableStatManger(31)
Functions ¶
Types ¶
type ReportResult ¶
type Reporter ¶
type Reporter interface {
Report(ReportResult)
}
type TableEntry ¶
type TableEntry struct {
// contains filtered or unexported fields
}
type TableStatManger ¶
func NewTableStatManger ¶
func NewTableStatManger(printSecond int) *TableStatManger
func (*TableStatManger) Add ¶
func (m *TableStatManger) Add(table string, key string, value int64)
虽然这个接口具备合并能力, 但可以的话还是可以在上层减少调用量
func (*TableStatManger) RegisterReporter ¶
func (m *TableStatManger) RegisterReporter(r Reporter)
func (*TableStatManger) Start ¶
func (m *TableStatManger) Start()
Click to show internal directories.
Click to hide internal directories.