package
0.0.2
Repository: https://github.com/slzcc/algae.git
Documentation: pkg.go.dev

# Functions

CreateAttachHandler is called from main for /api/sockjs.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
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

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

# Interfaces

PtyHandler is what remotecommand expects from a pty.