system

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Package system samples host resources independently of dashboard refreshes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

func New

func New(paths []string, interval time.Duration) *Collector

func (*Collector) Refresh

func (c *Collector) Refresh(ctx context.Context) (model.SystemInfo, error)

func (*Collector) Request

func (c *Collector) Request()

Request coalesces task-completion triggers. It never blocks task completion.

func (*Collector) Run

func (c *Collector) Run(ctx context.Context)

func (*Collector) Snapshot

func (c *Collector) Snapshot() model.SystemInfo

Jump to

Keyboard shortcuts

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