apis

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 17 Imported by: 2

Documentation

Index

Constants

View Source
const MODULE = "apis"

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskStat added in v0.1.1

type DiskStat struct {
	Path    string  `json:"path"`
	Total   uint64  `json:"total"`
	Free    uint64  `json:"free"`
	Used    uint64  `json:"used"`
	Percent float64 `json:"percent"`
}

type MemStat added in v0.1.1

type MemStat struct {
	Total     uint64  `json:"total"`
	Available uint64  `json:"available"`
	Used      uint64  `json:"used"`
	Percent   float64 `json:"percent"`
	Free      uint64  `json:"free"`
}

type NetStat added in v0.1.1

type NetStat struct {
	Index           int      `json:"index"`
	MTU             int      `json:"mtu"`
	Name            string   `json:"name"`
	HardwareAddress string   `json:"hardware_address"`
	Address         []string `json:"address"`
	BytesSent       uint64   `json:"bytes_sent"`
	BytesRecv       uint64   `json:"bytes_recv"`
	PacketsSent     uint64   `json:"packets_sent"`
	PacketsRecv     uint64   `json:"packets_recv"`
}

type OEM

type OEM struct {
	Name string `json:"name,omitempty"`
}

Jump to

Keyboard shortcuts

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