controllers

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfoController

type InfoController struct {
	beego.Controller
}

func (*InfoController) GetSysDiskInfo

func (c *InfoController) GetSysDiskInfo()

@Title System Disk Info @Description Get system disk info @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /disk [get]

func (*InfoController) GetSysInfo

func (c *InfoController) GetSysInfo()

@Title System Info @Description Get all system info @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /all [get]

type MainController

type MainController struct {
	beego.Controller
}

func (*MainController) Get

func (c *MainController) Get()

@Title index.tpl @Description get all objects @Success 200 {object} models.Object @Failure 403 :objectId is empty @router / [get]

type ProcessController

type ProcessController struct {
	beego.Controller
}

func (*ProcessController) AllProcess

func (c *ProcessController) AllProcess()

@Title All Processes Status @Description Get All Processes Status @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /all [get]

func (*ProcessController) Details

func (c *ProcessController) Details()

@Title Process Details @Description Get Process Details @Param pid query string true "which process to get" @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /details [get]

type SysInfoController

type SysInfoController struct {
	beego.Controller
}

func (*SysInfoController) GetHostname

func (c *SysInfoController) GetHostname()

@Title Hostname @Description Get hostname reported by the kernel. @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /hostname [get]

func (*SysInfoController) GetSysInfo

func (c *SysInfoController) GetSysInfo()

@Title Static System Global Info @Description Get all static system global info @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /all [get]

Directories

Path Synopsis
cpu
mem
net

Jump to

Keyboard shortcuts

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