sysstat

package
v0.0.0-...-3ce85d1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskStat

type DiskStat struct {
	Path  string
	Total uint64
	Free  uint64
}

DiskStat DiskStat

func NewDiskStat

func NewDiskStat(statfs syscalls.Statfs, fs afero.Fs) ([]DiskStat, error)

NewDiskStat NewDiskStat

type MemoryStat

type MemoryStat struct {
	Total uint64
	Used  uint64
	Cache uint64
	Free  uint64
}

MemoryStat MemoryStat

func NewMemoryStat

func NewMemoryStat() (*MemoryStat, error)

NewMemoryStat NewMemoryStat

type SysStat

type SysStat struct {
	// 時刻とサーバー名いるかな?
	Memory *MemoryStat
	Disks  []DiskStat
}

SysStat SysStat

func NewSysStat

func NewSysStat(statfs syscalls.Statfs, fs afero.Fs) (*SysStat, error)

NewSysStat NewSysStat

Jump to

Keyboard shortcuts

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