package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Mar 30, 2018
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package stats provides atomic counters for operations.
StatType is an enum for our various types of stats.
Stats contain the number of operations of each StatType
Get atomically reads the StatType's number of operations value
Increment atomically increments the StatType's counter
IncrementIfSuccess atomically increments the StatType's counter in Stats if err is nil
Source Files
¶
Click to show internal directories.
Click to hide internal directories.