controllers

package
v0.0.0-...-16d6618 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(t *TerminalSockjs, cmd string) error

处理输入输出与sockjs 交互

Types

type HomeController

type HomeController struct {
	beego.Controller
}

func (*HomeController) Get

func (c *HomeController) Get()

type TerminalController

type TerminalController struct {
	beego.Controller
}

func (*TerminalController) Get

func (self *TerminalController) Get()

type TerminalSockjs

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

func (*TerminalSockjs) Next

实现tty size queue

func (TerminalSockjs) Read

func (self TerminalSockjs) Read(p []byte) (int, error)

func (TerminalSockjs) ServeHTTP

func (self TerminalSockjs) ServeHTTP(w http.ResponseWriter, r *http.Request)

实现http.handler 接口获取入参

func (TerminalSockjs) Write

func (self TerminalSockjs) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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