ttyd_terminal

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWSStdInOut added in v0.6.4

func NewWSStdInOut() wsInOut

Types

type WebTTYPlugin

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

* * WEB终端: 本身不实现SSH协议, 而是通过控制一个外部进程(ttyd)来实现 * 相关资料: https://github.com/tsl0922/ttyd *

func NewWebTTYPlugin

func NewWebTTYPlugin() *WebTTYPlugin

func (*WebTTYPlugin) Init

func (tty *WebTTYPlugin) Init(config *ini.Section) error

func (*WebTTYPlugin) PluginMetaInfo

func (hh *WebTTYPlugin) PluginMetaInfo() typex.XPluginMetaInfo

func (*WebTTYPlugin) Service

func (tty *WebTTYPlugin) Service(arg typex.ServiceArg) typex.ServiceResult

func (*WebTTYPlugin) Start

func (tty *WebTTYPlugin) Start(typex.RuleX) error

* * 这里拉起来一个 ttyd 进程,默认运行 bash *

func (*WebTTYPlugin) Stop

func (tty *WebTTYPlugin) Stop() error

Jump to

Keyboard shortcuts

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