monitor

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 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 BatteryMonitor

type BatteryMonitor struct{}

func (*BatteryMonitor) Display

func (b *BatteryMonitor) Display() error

func (*BatteryMonitor) Name

func (b *BatteryMonitor) Name() string

func (*BatteryMonitor) Snapshot

func (b *BatteryMonitor) Snapshot() (map[string]any, error)

type Monitor

type Monitor interface {
	Name() string
	Snapshot() (map[string]any, error)
	Display() error
}

Monitor is the interface all system monitors implement

type NetworkMonitor

type NetworkMonitor struct{}

func (*NetworkMonitor) Display

func (n *NetworkMonitor) Display() error

func (*NetworkMonitor) Name

func (n *NetworkMonitor) Name() string

func (*NetworkMonitor) Snapshot

func (n *NetworkMonitor) Snapshot() (map[string]any, error)

type ProcessMonitor

type ProcessMonitor struct{}

func (*ProcessMonitor) Display

func (p *ProcessMonitor) Display() error

func (*ProcessMonitor) Name

func (p *ProcessMonitor) Name() string

func (*ProcessMonitor) Snapshot

func (p *ProcessMonitor) Snapshot() (map[string]any, error)

type SystemMonitor

type SystemMonitor struct{}

func (*SystemMonitor) Display

func (s *SystemMonitor) Display() error

func (*SystemMonitor) Name

func (s *SystemMonitor) Name() string

func (*SystemMonitor) Snapshot

func (s *SystemMonitor) Snapshot() (map[string]any, error)

Jump to

Keyboard shortcuts

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