Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProcessHash string
View Source
var RegexPid = regexp.MustCompile(`^\d+$`)
Functions ¶
func FiberMemoryHandler ¶
func FiberMemoryHandler() fiber.Handler
func FiberPsHandler ¶
func FiberPsHandler() fiber.Handler
func HttpMemoryHandler ¶
Types ¶
type HttpMemoryHandlerImpl ¶
type HttpMemoryHandlerImpl struct { }
func (*HttpMemoryHandlerImpl) ServeHTTP ¶
func (h *HttpMemoryHandlerImpl) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Memory ¶
type Memory struct { Id string `json:"id"` MemTotal int `json:"total"` MemFree int `json:"free"` MemAvailable int `json:"available"` RuntimeMemoryStats SimplifiedRuntimeMemStats `json:"runtimeMemoryStats"` PsEntries []PsEntry `json:"psEntries"` }
func ReadMemoryStats ¶
func (Memory) MarshalEasyJSON ¶
type SimplifiedRuntimeMemStats ¶
type SimplifiedRuntimeMemStats struct { Alloc float64 `json:"alloc"` TotalAlloc float64 `json:"totalAlloc"` Sys float64 `json:"sys"` Lookups float64 `json:"lookups"` Mallocs float64 `json:"mallocs"` Frees float64 `json:"frees"` HeapAlloc float64 `json:"heapAlloc"` HeapSys float64 `json:"heapSys"` HeapIdle float64 `json:"heapIdle"` HeapInuse float64 `json:"heapInuse"` HeapReleased float64 `json:"heapReleased"` HeapObjects float64 `json:"heapObjects"` StackInuse float64 `json:"stackInuse"` StackSys float64 `json:"stackSys"` MSpanInuse float64 `json:"mSpanInuse"` MSpanSys float64 `json:"mSpanSys"` }
Click to show internal directories.
Click to hide internal directories.