disk

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatUsage

type StatUsage struct {
	Name  string
	Total int
	Used  int
	Mount string
}

func GetDiskUsage

func GetDiskUsage() ([]StatUsage, error)

type Stats

type Stats struct {
	Name            string // device name; like "hda"
	ReadsCompleted  uint64 // total number of reads completed successfully
	WritesCompleted uint64 // total number of writes completed successfully
}

Stats represents disk I/O statistics for linux.

func Get

func Get() ([]Stats, error)

Get disk I/O statistics.

Jump to

Keyboard shortcuts

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