webshell

package
v0.0.0-...-1bf96ee Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseSsh

func CloseSsh(connId string)

func WebSocketHandler

func WebSocketHandler(data []byte, connId string, nsConn *websocket.NSConn)

Types

type Request

type Request struct {
	Operate    string `json:"operate"`
	ZihaoToken string `json:"zihaoToken"`
	HostId     string `json:"hostId"`
	Command    string `json:"command"`
	WinWidth   uint32 `json:"winWidth"`
	WinHeight  uint32 `json:"winHeight"`
	Cols       uint32 `json:"cols"`
	Rows       uint32 `json:"rows"`
}

type SshLoginModel

type SshLoginModel struct {
	Addr     string
	UserName string
	Pwd      string
	PemKey   string
	PtyCols  uint32
	PtyRows  uint32
	Width    uint32
	Height   uint32
}

Jump to

Keyboard shortcuts

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