Documentation ¶
Overview ¶
Package membasic processes a subset of the /proc/meminfo file. For more detailed information about a system's memory, use the meminfo package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTicker ¶
NewTicker returns a new Ticker containing a Data channel that delivers the data at intervals and an error channel that delivers any errors encountered. Stop the ticker to signal the ticker to stop running. Stopping the ticker does not close the Data channel; call Close to close both the ticker and the data channel.
Types ¶
type Info ¶
type Info struct { Timestamp int64 `json:"timestamp"` Active uint64 `json:"active"` Inactive uint64 `json:"inactive"` Mapped uint64 `json:"mapped"` MemAvailable uint64 `json:"mem_available"` MemFree uint64 `json:"mem_free"` MemTotal uint64 `json:"mem_total"` SwapCached uint64 `json:"swap_cached"` SwapFree uint64 `json:"swap_free"` SwapTotal uint64 `json:"swap_total"` }
Info holds the basic meminfo information.
Click to show internal directories.
Click to hide internal directories.