sysinfo

package module
v0.0.0-...-cbe2017 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

README

go-sysinfo [WORK IN PROGRESS]

Build Status Go Documentation

go-sysinfo is a library for collecting system information.

This project is a work in progress.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Go

func Go() types.GoInfo

Go returns information about the Go runtime.

func Host

func Host() (types.Host, error)

Host returns information about host on which this process is running. If host information collection is not implemented for this platform then types.ErrNotImplemented is returned.

func Process

func Process(pid int) (types.Process, error)

Process returns a types.Process object representing the process associated with the given PID. The types.Process object can be used to query information about the process. If process information collection is not implemented for this platform then types.ErrNotImplemented is returned.

func Processes

func Processes() ([]types.Process, error)

Processes return a list of all processes. If process information collection is not implemented for this platform then types.ErrNotImplemented is returned.

func Self

func Self() (types.Process, error)

Self return a types.Process object representing this process. If process information collection is not implemented for this platform then types.ErrNotImplemented is returned.

Types

This section is empty.

Directories

Path Synopsis
internal
providers
darwin
Package darwin implements the HostProvider and ProcessProvider interfaces for providing information about MacOS.
Package darwin implements the HostProvider and ProcessProvider interfaces for providing information about MacOS.
linux
Package linux implements the HostProvider and ProcessProvider interfaces for providing information about Linux.
Package linux implements the HostProvider and ProcessProvider interfaces for providing information about Linux.
windows
Package windows implements the HostProvider and ProcessProvider interfaces for providing information about Windows.
Package windows implements the HostProvider and ProcessProvider interfaces for providing information about Windows.

Jump to

Keyboard shortcuts

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