controllers

package
v0.0.0-...-8df46b2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdController

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

CmdController 接受并处理命令

func (*CmdController) Exec

func (c *CmdController) Exec()

@Title ExecCommand @Description get a command and goto exec. @Param body body models.Response true CmdInfo @Success 200 {string} models.Response @Failure 403 body is empty @router /command/exec [post]

func (*CmdController) NeedCheckLogin

func (b *CmdController) NeedCheckLogin() bool

func (*CmdController) Prepare

func (b *CmdController) Prepare()

Prepare runs before request function execution.

type SystemController

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

func (*SystemController) NeedCheckLogin

func (b *SystemController) NeedCheckLogin() bool

func (*SystemController) Ping

func (s *SystemController) Ping()

Status 获取Agent状态 @router /ping [get,head]

func (*SystemController) Prepare

func (b *SystemController) Prepare()

Prepare runs before request function execution.

Jump to

Keyboard shortcuts

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