Documentation ¶
Overview ¶
Package drpcstats contatins types for stat collection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stats ¶
Stats keeps counters of read and written bytes.
func (*Stats) AddWritten ¶
AddWritten atomically adds n bytes to the Written counter.
func (*Stats) AtomicClone ¶
AtomicClone returns a copy of the stats that is safe to use concurrently with Add methods.
Click to show internal directories.
Click to hide internal directories.