gopsutil

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SystemInfo

type SystemInfo struct {
	// contains filtered or unexported fields
}

SystemInfo is an implementation of pilosa.SystemInfo that uses gopsutil to collect information about the host OS.

func NewSystemInfo

func NewSystemInfo() *SystemInfo

NewSystemInfo is a constructor for the gopsutil implementation of SystemInfo.

func (*SystemInfo) Family

func (s *SystemInfo) Family() (string, error)

Family returns the system family.

func (*SystemInfo) KernelVersion

func (s *SystemInfo) KernelVersion() (string, error)

KernelVersion returns the kernel version as a string.

func (*SystemInfo) MemFree

func (s *SystemInfo) MemFree() (uint64, error)

MemFree returns the amount of free memory in bytes.

func (*SystemInfo) MemTotal

func (s *SystemInfo) MemTotal() (uint64, error)

MemTotal returns the amount of total memory in bytes.

func (*SystemInfo) MemUsed

func (s *SystemInfo) MemUsed() (uint64, error)

MemUsed returns the amount of used memory in bytes.

func (*SystemInfo) OSVersion

func (s *SystemInfo) OSVersion() (string, error)

OSVersion returns the OS Version.

func (*SystemInfo) Platform

func (s *SystemInfo) Platform() (string, error)

Platform returns the system platform.

func (*SystemInfo) Uptime

func (s *SystemInfo) Uptime() (uptime uint64, err error)

Uptime returns the system uptime in seconds.

Jump to

Keyboard shortcuts

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