sysinfo

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package sysinfo provides global top-level variables about the running host machine.

Index

Constants

This section is empty.

Variables

View Source
var (
	Kernel    string
	CPU       Processor
	Cards     []Card
	Distro    string
	InFlatpak bool
)

Functions

This section is empty.

Types

type Card added in v1.5.8

type Card struct {
	Index    int    // Internal Kernel index
	Path     string // Path to the drm card
	Device   string // Path to the PCI device
	Driver   string // Base driver name
	Embedded bool   // Integrated display
}

Card is a representation of a system GPU

func (Card) String added in v1.7.0

func (c Card) String() string

type Processor added in v1.6.0

type Processor struct {
	Name            string
	AVX             bool
	SplitLockDetect bool
}

Processor is a representation of a system CPU

Jump to

Keyboard shortcuts

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