structures

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPULoad

type CPULoad struct {
	Load float64 `json:"load"`
}

type Dashboard

type Dashboard struct {
	CPULoad *CPULoad   `json:"cpu_load"`
	IO      *UsageStat `json:"io"`
	Mem     *Memory    `json:"mem"`
}

type DashboardParams

type DashboardParams struct {
	Path string `json:"path"`
}

type Memory

type Memory struct {
	Total  uint64 `json:"total"`
	Free   uint64 `json:"free"`
	Used   uint64 `json:"used"`
	Cached uint64 `json:"cached"`
}

Memory in kibibyte

type PartitionStat

type PartitionStat struct {
	Device     string   `json:"device"`
	Mountpoint string   `json:"mountpoint"`
	Fstype     string   `json:"fstype"`
	Opts       []string `json:"opts"`
}

type Response

type Response struct {
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

Response is a struct that contains the response from the server.

type UsageStat

type UsageStat struct {
	Path              string  `json:"path"`
	Fstype            string  `json:"fstype"`
	Total             uint64  `json:"total"`
	Free              uint64  `json:"free"`
	Used              uint64  `json:"used"`
	UsedPercent       float64 `json:"usedPercent"`
	InodesTotal       uint64  `json:"inodesTotal"`
	InodesUsed        uint64  `json:"inodesUsed"`
	InodesFree        uint64  `json:"inodesFree"`
	InodesUsedPercent float64 `json:"inodesUsedPercent"`
}

type Version

type Version struct {
	V string `json:"version"`
}

Jump to

Keyboard shortcuts

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