26 lines
505 B
Go
26 lines
505 B
Go
//go:build linux
|
|
|
|
package sprigx
|
|
|
|
import (
|
|
`github.com/shirou/gopsutil/v4/mem`
|
|
psnet `github.com/shirou/gopsutil/v4/net`
|
|
)
|
|
|
|
var (
|
|
osGenericMap map[string]any = map[string]any{
|
|
/*
|
|
PSUtil
|
|
(https://pkg.go.dev/github.com/shirou/gopsutil/v4)
|
|
*/
|
|
// .../mem
|
|
"psMemExVMem": mem.NewExLinux().VirtualMemory,
|
|
// .../net
|
|
"psNetRev": psnet.Reverse,
|
|
// .../sensors
|
|
"psSensorExTemp": psSensorExTemp,
|
|
}
|
|
osHtmlMap map[string]any = map[string]any{}
|
|
osTxtMap map[string]any = map[string]any{}
|
|
)
|