Documentation ¶
Index ¶
Constants ¶
View Source
const (
ModuleName = "usage_metrics"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UniqueCounter ¶
type UniqueCounter interface {
Add(int64)
}
type UsageTracker ¶
type UsageTracker struct {
// contains filtered or unexported fields
}
func NewUsageTracker ¶
func NewUsageTracker() *UsageTracker
func (*UsageTracker) CloneUsageData ¶
func (ut *UsageTracker) CloneUsageData() *UsageData
func (*UsageTracker) RegisterCounter ¶
func (ut *UsageTracker) RegisterCounter(name string) Counter
func (*UsageTracker) RegisterUniqueCounter ¶
func (ut *UsageTracker) RegisterUniqueCounter(name string) UniqueCounter
func (*UsageTracker) Subtract ¶
func (ut *UsageTracker) Subtract(ud *UsageData)
type UsageTrackerCollector ¶
type UsageTrackerInterface ¶
type UsageTrackerInterface interface { UsageTrackerRegisterer UsageTrackerCollector }
type UsageTrackerRegisterer ¶
type UsageTrackerRegisterer interface { RegisterCounter(name string) Counter RegisterUniqueCounter(name string) UniqueCounter }
Click to show internal directories.
Click to hide internal directories.