wsconn

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SshConn

type SshConn struct {
	Stdin      io.WriteCloser
	WsWriter   *wsBufferWriter
	SshSession *ssh.Session
}

func NewSshConn

func NewSshConn(cols, rows int, sshClient *ssh.Client) (*SshConn, error)

func (*SshConn) Close

func (s *SshConn) Close()

func (*SshConn) ReadWsMessage

func (ssConn *SshConn) ReadWsMessage(wsConn *websocket.Conn, stopCh chan bool)

func (*SshConn) SendWsWriteMessage

func (ssConn *SshConn) SendWsWriteMessage(wsConn *websocket.Conn, stopCh chan bool)

func (*SshConn) SessionWait

func (ssConn *SshConn) SessionWait(stopChan chan bool)

Jump to

Keyboard shortcuts

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