host

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 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 Memory

type Memory struct {
	SizeBytes uint64
}

func GetFreePhysicalMemory

func GetFreePhysicalMemory(whost *host.WmiHost) (mem *Memory, err error)

GetFreePhysicalMemory

func GetTotalPhysicalMemory

func GetTotalPhysicalMemory(whost *host.WmiHost) (mem *Memory, err error)

GetTotalPhysicalMemory

type PhysicalMemory

type PhysicalMemory struct {
	*cimv2.Win32_PhysicalMemory
}

func NewPhysicalMemory

func NewPhysicalMemory(instance *wmi.WmiInstance) (*PhysicalMemory, error)

NewPhysicalMemory

type Processor

type Processor struct {
	*cimv2.Win32_Processor
}

func NewProcessor

func NewProcessor(instance *wmi.WmiInstance) (*Processor, error)

NewPhysicalMemory

type TotalProcessor

type TotalProcessor struct {
	Cores             uint32
	LogicalProcessors uint32
}

func GetTotalProcessor

func GetTotalProcessor(whost *host.WmiHost) (proc *TotalProcessor, err error)

GetTotalProcessor

Jump to

Keyboard shortcuts

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