memory

package
v0.0.2-0...-83fa1ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllMemoryResponse

type AllMemoryResponse struct {
	Error bool         `json:"error"`
	Msg   string       `json:"msg"`
	Data  *MemoryStats `json:"data"`
}

type MemoryStat

type MemoryStat struct {
	Total       uint64  `json:"total"`
	Used        uint64  `json:"used"`
	UsedPercent float64 `json:"usedPercent"`
}

type MemoryStats

type MemoryStats struct {
	VirtualMemory *VirtualMemory
	SwapMemory    *SwapMemory
	SwapDevices   []*SwapDevice
}

type SwapDevice

type SwapDevice struct {
	Name      string `json:"name"`
	UsedBytes uint64 `json:"usedBytes"`
	FreeBytes uint64 `json:"freeBytes"`
}

type SwapMemory

type SwapMemory struct {
	MemoryStat
	Free uint64 `json:"free"`
}

type VirtualMemory

type VirtualMemory struct {
	MemoryStat
	Available uint64 `json:"available"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL