system

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	OS     string
	Arch   string
	Kernel string
	Memory struct {
		Total     int64
		Free      int64
		Available int64
	}
	ProcessorCount int
	Processors     []Processor
}

func Gather

func Gather() (*Info, error)

func (*Info) Class

func (i *Info) Class() string

type Processor

type Processor struct {
	ID             int64
	Vendor         string
	Family         int64
	ModelCode      int64
	Model          string
	Stepping       int64
	Microcode      int64
	Speed          string
	CacheSize      string
	PhysID         int64
	Sibligs        int64
	CoreID         int64
	Cores          int64
	FPU            bool
	WriteProtect   bool
	Flags          []string
	Bugs           []string
	CacheAlignment int64
	AddressSizes   struct {
		Physical int64
		Virtual  int64
	}
}

Jump to

Keyboard shortcuts

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