Documentation
¶
Overview ¶
Package counterdumper contains a counter that that periodically invokes a callback if the counter is not zero.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CounterDumper ¶
type CounterDumper struct { OnReport func(v uint64) // contains filtered or unexported fields }
CounterDumper is a counter that periodically invokes a callback if the counter is not zero.
func (*CounterDumper) Increase ¶
func (c *CounterDumper) Increase()
Increase increases the counter value by 1.
Click to show internal directories.
Click to hide internal directories.