Documentation ¶
Index ¶
Constants ¶
View Source
const ( MsgIDWrite = "Write" MsgIDWinSize = "WinSize" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgTTYWinSize ¶
type MsgTTYWrite ¶
type MsgWrapper ¶
Message used to encapsulate the rest of the bessages bellow
type OnMsgWinSize ¶
type OnMsgWinSize func(cols, rows int)
type OnMsgWrite ¶
type OnMsgWrite func(data []byte)
type PTYHandler ¶
type TTYProtocolWSLocked ¶
type TTYProtocolWSLocked struct {
// contains filtered or unexported fields
}
func NewTTYProtocolWSLocked ¶
func NewTTYProtocolWSLocked(ws *websocket.Conn) *TTYProtocolWSLocked
func (*TTYProtocolWSLocked) ReadAndHandle ¶
func (handler *TTYProtocolWSLocked) ReadAndHandle(onWrite OnMsgWrite, onWinSize OnMsgWinSize) (err error)
func (*TTYProtocolWSLocked) SetWinSize ¶
func (handler *TTYProtocolWSLocked) SetWinSize(cols, rows int) (err error)
type TTYShareSession ¶
type TTYShareSession struct {
// contains filtered or unexported fields
}
func NewTTYShareSession ¶
func NewTTYShareSession(ptyHandler PTYHandler) *TTYShareSession
func (*TTYShareSession) HandleWSConnection ¶
func (session *TTYShareSession) HandleWSConnection(wsConn *websocket.Conn)
Will run on the TTYReceiver connection go routine (e.g.: on the websockets connection routine) When HandleWSConnection will exit, the connection to the TTYReceiver will be closed
func (*TTYShareSession) WindowSize ¶
func (session *TTYShareSession) WindowSize(cols, rows int) error
Click to show internal directories.
Click to hide internal directories.