# Functions
Ensure makes certain the given stat is defined.
Inc increments the given stat by a certain amount.
New creates a Health object with the given statistics.
NewStats constructs a Stats object preinitialized with the internal default statistics plus the given options.
Set changes (or, initializes) the stat to the given value.
Wrap returns a *health.ResponseWriter which wraps the given http.ResponseWriter.
# Constants
No description provided by the author
General memory stats.
No description provided by the author
DefaultMemoryReaderLocation is the default location for meminfo under Linux.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
Invalid stat option error.
# Structs
Health is the central type of this package.
MemInfoReader handles extracting the linux memory information from the enclosing environment.
ResponseWriter is a wrapper type for an http.ResponseWriter that exposes the status code.
# Interfaces
Monitor is the basic interface implemented by health event sinks.
Option describes an option that can be set on a Stats map.
StatsListener receives Stats on regular intervals.
# Type aliases
HealthFunc functions are allowed to modify the passed-in stats.
Stat is a named piece of data to be tracked.
Stats is mapping of Stat to value.
StatsListenerFunc is a function type that implements StatsListener.