monitor

package
v0.0.15-rc.7 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectStats

func CollectStats() (*monitor.SystemStats, error)

func WithCallback

func WithCallback(callback func(stats *monitor.SystemStats) error) func(o *option)

func WithContext

func WithContext(ctx context.Context) func(o *option)

func WithInterval

func WithInterval(interval time.Duration) func(o *option)

Types

type SystemMonitor

type SystemMonitor interface {
	Watch()
}

func NewSystemMonitor

func NewSystemMonitor(opts ...func(*option)) SystemMonitor

Jump to

Keyboard shortcuts

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