Versions in this module Expand all Collapse all v1 v1.0.2 May 5, 2022 Changes in this version + func NewWsConn(conn *websocket.Conn) *wsConn + type Config struct + Height int + IpAddress string + KeyPassphrase string + Password string + Port string + PrivateKey string + UserName string + Width int + type Meta struct + ConnectId string + Height int + HostId uint + HostName string + TERM string + UserName string + Width int + type RecordData struct + Data []byte + Event string + Time float64 + type Terminal struct + Client *ssh.Client + TERM string + func NewTerminal(config Config) (*Terminal, error) + func (t *Terminal) Close() (err error) + func (t *Terminal) Connect(stdin io.Reader, stdout io.Writer, stderr io.Writer) error + func (t *Terminal) IsClosed() bool + func (t *Terminal) SetCloseHandler(h func() error) + func (t *Terminal) SetWinSize(h int, w int) + type WebSocketStream struct + Conn *wsConn + CreatedAt models.LocalTime + Meta Meta + Terminal *Terminal + UpdatedAt models.LocalTime + func NewWebSocketSteam(terminal *Terminal, connection *wsConn, meta Meta) *WebSocketStream + func (r *WebSocketStream) Read(p []byte) (n int, err error) + func (r *WebSocketStream) Write(p []byte) (n int, err error) + func (r *WebSocketStream) Write2Log() error