Documentation
¶
Index ¶
- Variables
- func Cmd(ctx echo.Context) error
- func CmdSendBySockJS(c sockjs.Session) error
- func CmdSendByWebsocket(c *websocket.Conn, ctx echo.Context) error
- func Command(ctx echo.Context) error
- func CommandAdd(ctx echo.Context) error
- func CommandDelete(ctx echo.Context) error
- func CommandEdit(ctx echo.Context) error
- func CommandJob(id string) cron.Runner
- func Connections(ctx echo.Context) (err error)
- func DaemonAdd(ctx echo.Context) error
- func DaemonDelete(ctx echo.Context) error
- func DaemonEdit(ctx echo.Context) error
- func DaemonIndex(ctx echo.Context) error
- func DaemonLog(ctx echo.Context) error
- func DaemonRestart(ctx echo.Context) error
- func ExecCommand(id uint) (*dbschema.NgingCommand, string, error)
- func Hosts(ctx echo.Context) error
- func Info(ctx echo.Context) error
- func InfoBySockJS(c sockjs.Session) error
- func InfoByWebsocket(c *websocket.Conn, ctx echo.Context) error
- func NetStatTCP() (<-chan net.ConnectionStat, error)
- func NetStatUDP() (<-chan net.ConnectionStat, error)
- func ProcessInfo(ctx echo.Context) error
- func ProcessKill(ctx echo.Context) error
- func ProcessList(ctx echo.Context) error
- func Pty(c *websocket.Conn, ctx echo.Context) error
- func RegisterRoute(r module.Router)
- func Service(ctx echo.Context) error
- func Status(ctx echo.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotImplemented = errors.New("not implemented yet")
View Source
true, Name: echo.T(`服务器`), Action: `server`, Icon: `desktop`, Children: &navigate.List{ { Display: true, Name: echo.T(`服务器信息`), Action: `sysinfo`, }, { Display: false, Name: echo.T(`服务器进程`), Action: `processes`, }, { Display: true, Name: echo.T(`网络端口`), Action: `netstat`, }, { Display: true, Name: echo.T(`执行命令`), Action: `cmd`, }, { Display: false, Name: echo.T(`打开控制台`), Action: `ptyWS`, }, { Display: true, Name: echo.T(`快捷命令`), Action: `command`, }, { Display: false, Name: echo.T(`添加快捷命令`), Action: `command_add`, }, { Display: false, Name: echo.T(`修改快捷命令`), Action: `command_edit`, }, { Display: false, Name: echo.T(`删除快捷命令`), Action: `command_delete`, }, { Display: true, Name: echo.T(`服务管理`), Action: `service`, }, { Display: false, Name: echo.T(`查看服务日志`), Action: `log/:category`, }, { Display: true, Name: echo.T(`hosts文件`), Action: `hosts`, }, { Display: false, Name: echo.T(`查看进程详情`), Action: `process/:pid`, }, { Display: false, Name: echo.T(`杀死进程`), Action: `procskill/:pid`, }, { Display: false, Name: echo.T(`命令对话`), Action: `cmdSend/*`, }, { Display: false, Name: echo.T(`发送命令`), Action: `cmdSendWS`, }, { Display: true, Name: echo.T(`进程值守`), Action: `daemon_index`, }, { Display: false, Name: echo.T(`进程值守日志`), Action: `daemon_log`, }, { Display: false, Name: echo.T(`添加值守配置`), Action: `daemon_add`, }, { Display: false, Name: echo.T(`修改值守配置`), Action: `daemon_edit`, }, { Display: false, Name: echo.T(`删除值守配置`), Action: `daemon_delete`, }, { Display: false, Name: echo.T(`重启值守`), Action: `daemon_restart`, }, }, }Display:
Functions ¶
func CmdSendBySockJS ¶
func CommandAdd ¶
func CommandDelete ¶
func CommandEdit ¶
func Connections ¶
func DaemonDelete ¶
func DaemonEdit ¶
func DaemonIndex ¶
func DaemonRestart ¶
func ExecCommand ¶
func ExecCommand(id uint) (*dbschema.NgingCommand, string, error)
func InfoBySockJS ¶
func NetStatTCP ¶
func NetStatTCP() (<-chan net.ConnectionStat, error)
func NetStatUDP ¶
func NetStatUDP() (<-chan net.ConnectionStat, error)
func ProcessInfo ¶
func ProcessKill ¶
func ProcessList ¶
func RegisterRoute ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.