xterm

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WinSize

type WinSize struct {
	Rows int `form:"rows" json:"rows" binding:"required,min=1" label:"行数"`
	Cols int `form:"cols" json:"cols" binding:"required,min=1" label:"列数"`
}

type Xterm

type Xterm struct {
}

func GetXterm

func GetXterm() *Xterm

func (*Xterm) Connect

func (a *Xterm) Connect(c *gin.Context)

Connect godoc

@Summary	websocket连接
@Tags		Web Shell
@Param		rows	query		int		true	"pty的行数"
@Param		cols	query		int		true	"pty的列数"
@Param		token	query		string	true	"Web Shell连接使用的token"
@Success	200		{object}	nil
@Router		/terminal/ws [get]

func (*Xterm) ConnectWithRemoteSSH

func (a *Xterm) ConnectWithRemoteSSH(c *gin.Context)

ConnectWithRemoteSSH godoc

@Summary	websocket连接,并通过ssh连接其他主机
@Tags		Web Shell With SSH
@Param		rows	query		int		true	"pty的行数"
@Param		cols	query		int		true	"pty的列数"
@Param		token	query		string	true	"Web Shell连接使用的token"
@Param		id		path		int64	true	"主机ID"
@Success	200		{object}	nil
@Router		/terminal/ws/ssh/:id [get]

Jump to

Keyboard shortcuts

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