stat

package
v0.0.0-...-0e55cf6 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPU

type CPU struct {
	Total, User, System, Idle uint64
}

func CalCpuUsage

func CalCpuUsage() CPU

type Disk

type Disk struct {
	Used, Total uint64
}

func CalDiskUsage

func CalDiskUsage() Disk

func (*Disk) Usage

func (d *Disk) Usage() float64

type Mem

type Mem struct {
	Used, Available, Total uint64
}

func CalMemUsage

func CalMemUsage() Mem

func (*Mem) Usage

func (m *Mem) Usage() float64

type Server

type Server struct {
	CPU
	Mem
	Disk
}

func GetServer

func GetServer() *Server

Jump to

Keyboard shortcuts

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