handler

package
v1.5.11 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: AGPL-3.0 Imports: 54 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = errors.New("not implemented yet")
View Source
var LeftNavigate = &navigate.Item{
	Display: true,
	Name:    `服务器`,
	Action:  `server`,
	Icon:    `desktop`,
	Children: &navigate.List{
		{
			Display: true,
			Name:    `服务器信息`,
			Action:  `sysinfo`,
		},
		{
			Display: false,
			Name:    `服务器进程`,
			Action:  `processes`,
		},
		{
			Display: true,
			Name:    `网络端口`,
			Action:  `netstat`,
		},
		{
			Display: true,
			Name:    `执行命令`,
			Action:  `cmd`,
		},
		{
			Display: false,
			Name:    `打开控制台`,
			Action:  `ptyWS`,
		},

		{
			Display: true,
			Name:    `快捷命令`,
			Action:  `command`,
		},
		{
			Display: false,
			Name:    `添加快捷命令`,
			Action:  `command_add`,
		},
		{
			Display: false,
			Name:    `修改快捷命令`,
			Action:  `command_edit`,
		},
		{
			Display: false,
			Name:    `删除快捷命令`,
			Action:  `command_delete`,
		},
		{
			Display: true,
			Name:    `服务管理`,
			Action:  `service`,
		},
		{
			Display: false,
			Name:    `查看服务日志`,
			Action:  `log/:category`,
		},
		{
			Display: true,
			Name:    `hosts文件`,
			Action:  `hosts`,
		},
		{
			Display: false,
			Name:    `查看进程详情`,
			Action:  `process/:pid`,
		},
		{
			Display: false,
			Name:    `杀死进程`,
			Action:  `procskill/:pid`,
		},
		{
			Display: false,
			Name:    `命令对话`,
			Action:  `cmdSend/*`,
		},
		{
			Display: false,
			Name:    `发送命令`,
			Action:  `cmdSendWS`,
		},
		{
			Display: true,
			Name:    `进程值守`,
			Action:  `daemon_index`,
		},
		{
			Display: false,
			Name:    `进程值守日志`,
			Action:  `daemon_log`,
		},
		{
			Display: false,
			Name:    `添加值守配置`,
			Action:  `daemon_add`,
		},
		{
			Display: false,
			Name:    `修改值守配置`,
			Action:  `daemon_edit`,
		},
		{
			Display: false,
			Name:    `删除值守配置`,
			Action:  `daemon_delete`,
		},
		{
			Display: false,
			Name:    `重启值守`,
			Action:  `daemon_restart`,
		},
	},
}

Functions

func Cmd

func Cmd(ctx echo.Context) error

func CmdSendBySockJS

func CmdSendBySockJS(c sockjs.Session) error

func CmdSendByWebsocket

func CmdSendByWebsocket(c *websocket.Conn, ctx echo.Context) error

func Command

func Command(ctx echo.Context) error

func CommandAdd

func CommandAdd(ctx echo.Context) error

func CommandDelete

func CommandDelete(ctx echo.Context) error

func CommandEdit

func CommandEdit(ctx echo.Context) error

func CommandJob added in v1.4.21

func CommandJob(id string) cron.Runner

CommandJob 计划任务调用方式

func Connections

func Connections(ctx echo.Context) (err error)

func DaemonAdd

func DaemonAdd(ctx echo.Context) error

func DaemonDelete

func DaemonDelete(ctx echo.Context) error

func DaemonEdit

func DaemonEdit(ctx echo.Context) error

func DaemonIndex

func DaemonIndex(ctx echo.Context) error

func DaemonLog

func DaemonLog(ctx echo.Context) error

func DaemonRestart

func DaemonRestart(ctx echo.Context) error

func ExecCommand

func ExecCommand(id uint) (*dbschema.NgingCommand, string, error)

func Hosts

func Hosts(ctx echo.Context) error

func Info

func Info(ctx echo.Context) error

func InfoBySockJS

func InfoBySockJS(c sockjs.Session) error

func InfoByWebsocket

func InfoByWebsocket(c *websocket.Conn, ctx echo.Context) error

func NetStatTCP

func NetStatTCP() (<-chan net.ConnectionStat, error)

func NetStatUDP

func NetStatUDP() (<-chan net.ConnectionStat, error)

func ProcessInfo

func ProcessInfo(ctx echo.Context) error

func ProcessKill

func ProcessKill(ctx echo.Context) error

func ProcessList

func ProcessList(ctx echo.Context) error

func Pty added in v0.9.1

func Pty(c *websocket.Conn, ctx echo.Context) error

func RegisterRoute

func RegisterRoute(r *route.Collection)

func Service

func Service(ctx echo.Context) error

func Status

func Status(ctx echo.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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