collectors

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatteryInfo

type BatteryInfo struct {
	Present    bool
	Percentage float64
	IsCharging bool
	TimeRemain string
}

type Collector

type Collector interface {
	Collect() (*SystemInfo, error)
}

Collector interface for gathering system information

type DiskInfo

type DiskInfo struct {
	Used  uint64
	Total uint64
}

type MemoryInfo

type MemoryInfo struct {
	Used  uint64
	Total uint64
}

type NetworkInfo

type NetworkInfo struct {
	Interface string
	IPv4      string
	IPv6      string
	MAC       string
}

type SystemInfo

type SystemInfo struct {
	OS         string
	Kernel     string
	Hostname   string
	Uptime     string
	CPU        string
	Memory     MemoryInfo
	Disk       DiskInfo
	Shell      string
	Terminal   string
	Resolution string
	DE         string
	WM         string
	Theme      string
	Icons      string
	GPU        []string
	Network    []NetworkInfo
	Battery    BatteryInfo
	LocalIP    string
	PublicIP   string
}

SystemInfo holds all collected system information

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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