shell

package
v0.0.45 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PTYConnect

func PTYConnect(sender pb.Master_PTYConnectServer) error

func PTYHandler

func PTYHandler(c *gin.Context)

Types

type PTYMgr

type PTYMgr struct {
	*utils.SyncMap[string, pb.Master_PTYConnectServer] // sessionID
	// contains filtered or unexported fields
}

func Mgr

func Mgr() *PTYMgr

func NewPTYMgr

func NewPTYMgr() *PTYMgr

func (*PTYMgr) Add

func (m *PTYMgr) Add(sessionID string, conn pb.Master_PTYConnectServer)

func (*PTYMgr) IsSessionDone

func (m *PTYMgr) IsSessionDone(sessionID string) bool

func (*PTYMgr) SetSessionDone

func (m *PTYMgr) SetSessionDone(sessionID string)

Jump to

Keyboard shortcuts

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