monitor

package
v0.0.0-...-1d92d00 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalIP

func GetLocalIP() (string, error)

Types

type HostInfo

type HostInfo struct {
	Arch      string
	OSInfo    string
	Hostname  string
	KernelVer string
	OSVersion string
	Platform  string
	Family    string
}

func GetHostInfo

func GetHostInfo() (hostInfo HostInfo, err error)

GetHostInfo returns the HostInfo struct

type Probe

type Probe struct {
	CPULoad   []float64
	MemUsage  float64
	MemUsed   uint64
	MemTotal  uint64
	NetName   string
	BytesRecv uint64
	BytesSent uint64
	LocalIP   string
}

HostMonitor Structure

func GetProbe

func GetProbe(targetInterface string) (probe Probe, err error)

GetProbe returns the Probe struct

Jump to

Keyboard shortcuts

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