controllers

package
v0.0.0-...-2dfa829 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2017 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadData

func DownloadData(db *sql.DB, c echo.Context) error

func GetScout

func GetScout(db *sql.DB, c echo.Context) error

func GetScoutFrame

func GetScoutFrame(db *sql.DB, c echo.Context) error

func GetScouts

func GetScouts(db *sql.DB, c echo.Context) error

func ScoutCalibrated

func ScoutCalibrated(db *sql.DB, c echo.Context) error

func ScoutHeartbeat

func ScoutHeartbeat(db *sql.DB, c echo.Context) error

func ScoutInteraction

func ScoutInteraction(db *sql.DB, c echo.Context) error

func ScoutLog

func ScoutLog(db *sql.DB, c echo.Context) error

func UpdateScout

func UpdateScout(db *sql.DB, c echo.Context) error

Types

type HealthData

type HealthData struct {
	IpAddress   string  // The current IP address of the scout.
	CPU         float32 // The amount of CPU load currently being consumed on the scout. 0.0 - no load, 1.0 - full load.
	Memory      float32 // The amount of memory consumed on the scout. 0.0 - no memory used, 1.0 no memory available.
	TotalMemory float32 // The total number of gigabytes of virtual memory currently available.
	Storage     float32 // The amount of storage consumed on the scout. 0.0 - disk unused, 1.0 disk full.
}

type Heartbeat

type Heartbeat struct {
	UUID    string     // The UUID for the scout.
	Version string     // The version of the protocol used used for transmitting data to the mothership.
	Health  HealthData // The current health status of the scout.

}

Jump to

Keyboard shortcuts

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