system

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sample

type Sample struct {
	CPUPercent float64
	NumCPUs    int
	MemTotal   uint64
	MemUsed    uint64
	DiskTotal  uint64
	DiskFree   uint64
	DiskUsed   uint64
	DiskErr    error
}

type Scraper

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

func NewScraper

func NewScraper(settings ScraperSettings) *Scraper

func (*Scraper) Fetch

func (s *Scraper) Fetch(n int) []Sample

func (*Scraper) MemTotal

func (s *Scraper) MemTotal() uint64

func (*Scraper) NumCPUs

func (s *Scraper) NumCPUs() int

func (*Scraper) Scrape

func (s *Scraper) Scrape(ctx context.Context)

type ScraperSettings

type ScraperSettings struct {
	BufferSize   int
	DiskPath     string
	DiskFallback string
}

Jump to

Keyboard shortcuts

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