Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Unknown message type, maybe send by a bug UnknownInput = '0' // User input typically from a keyboard Input = '1' // Ping to the server Ping = '2' // Notify that the brower size has been changed ResizeTerminal = '3' )
View Source
const ( // Unknown message type, maybe set by a bug UnknownOutput = '0' // Normal output to the terminal Output = '1' // Pong to the brower Pong = '2' // Set window title of the terminal SetWindowTitle = '3' // Set terminal preference SetPreferences = '4' // Make terminal to reconnect SetReconnect = '5' )
Variables ¶
View Source
var Protocols = []string{"webtty"}
Protocols defines the name of this protocol, which is supposed to be used to the subprotocol of Websocket streams.
Functions ¶
Types ¶
type WebSshClient ¶
type WebSshClient struct {
// contains filtered or unexported fields
}
func NewWebSshClient ¶
func NewWebSshClient(sshConfig *config.SshConfig, wswConn *wsWrapper) (*WebSshClient, error)
func (*WebSshClient) Run ¶
func (wsc *WebSshClient) Run() error
Click to show internal directories.
Click to hide internal directories.