system

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FreeRAM added in v0.5.0

func FreeRAM() (uintptr, error)

FreeRAM returns the amount of free RAM available for allocation in bytes.

func FreeSwap added in v0.10.0

func FreeSwap() (uintptr, error)

FreeSwap returns the amount of free RAM available for allocation in bytes.

func TotalRAM added in v0.5.0

func TotalRAM() (uintptr, error)

TotalRAM returns the total amount of installed RAM in bytes.

func TotalSwap added in v0.10.0

func TotalSwap() (uintptr, error)

TotalSwap returns the amount of free RAM available for allocation in bytes.

Types

type Info

type Info struct {
	OSName    string   `json:"osName"`
	OSVersion string   `json:"osVersion"`
	OSFlavour string   `json:"osFlavour"`
	OSArch    arch.T   `json:"osArch"`
	Hostname  string   `json:"hostname"`
	IPs       []string `json:"ips"`
	TotalRAM  uintptr  `json:"totalRAM"`
}

Info contains information about the running system.

func GetInfo

func GetInfo() (*Info, error)

GetInfo retrieves the Info about the currently running system.

Jump to

Keyboard shortcuts

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