Documentation ¶
Overview ¶
Package stats provides helpers for simple stats
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountSum ¶
type CountSum struct {
// contains filtered or unexported fields
}
CountSum holds sum and count values.
func (*CountSum) Add ¶
Add adds size to s and returns approximate values for the current count and total bytes.
func (*CountSum) Approximate ¶
Approximate returns an approximation of the current count and sum values. It is approximate because retrieving both values is not an atomic operation.
Click to show internal directories.
Click to hide internal directories.