server

package
v0.0.0-...-f1ce461 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2015 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiskSpace

func DiskSpace() (*disk.DiskUsageStat, error)

Types

type Process

type Process struct {
	Name string `json:"name"`
	Pid  int    `json:"pid"`
}

type ProcessData

type ProcessData struct {
	Apikey   string `json:"apikey"`
	Data     []Process
	Serverip string `json:"serverip"`
}

func ProcessList

func ProcessList() (*ProcessData, error)

Lists Top 5 ProcessPids with Names running on the Host

type ServerData

type ServerData struct {
	Apikey string `json:"apikey"`
	Data   struct {
		Available int `json:"available"`
		Total     int `json:"total"`
		Used      int `json:"used"`
	} `json:"data"`
	Serverip string `json:"serverip"`
}

func ServerMemory

func ServerMemory() (*ServerData, error)

Jump to

Keyboard shortcuts

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