Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TableUsageRecorder ¶
type TableUsageRecorder interface {
// Start recording until the ctx cancelled. This method will block the current thread.
Start(tom *tomb.Tomb)
}
TableUsageRecorder records the usage of each table into a Pegasus table. The usage statistics can be used for service cost calculation.
func NewTableUsageRecorder ¶
func NewTableUsageRecorder() TableUsageRecorder
NewTableUsageRecorder returns an instance of TableUsageRecorder
Click to show internal directories.
Click to hide internal directories.