package
0.0.1
Repository: https://github.com/duc-cnzj/mars.git
Documentation: pkg.go.dev

# Functions

CreateAttachHandler is called from main for /api/sockjs.
GenTerminalSessionId generates a random session ID string.
HandleExecShell Handles execute shell API call.
WaitForTerminal is called from apihandler.handleAttach as a goroutine Waits for the SockJS connection to be opened by the client the session to be bound in handleTerminalSession.

# Constants

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
SessionMap stores a map of all TerminalSession objects and a lock to avoid concurrent conflict.
TerminalMessage is the messaging protocol between ShellController and TerminalSession.
No description provided by the author
TerminalSession implements PtyHandler (using a SockJS connection).

# Interfaces

PtyHandler is what remotecommand expects from a pty.