Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultCloseSignal = syscall.SIGINT DefaultCloseTimeout = 10 * time.Second )
View Source
const ( WsMsgCmd = "cmd" WsMsgResize = "resize" WsMsgHeartbeat = "heartbeat" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalCommand ¶
type LocalCommand struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func NewCommand(commands string) (*LocalCommand, error)
func (*LocalCommand) Close ¶
func (lcmd *LocalCommand) Close() error
func (*LocalCommand) ResizeTerminal ¶
func (lcmd *LocalCommand) ResizeTerminal(width int, height int) error
func (*LocalCommand) Wait ¶
func (lcmd *LocalCommand) Wait(quitChan chan bool)
type LocalWsSession ¶
type LocalWsSession struct {
// contains filtered or unexported fields
}
func NewLocalWsSession ¶
func NewLocalWsSession(cols, rows int, wsConn *websocket.Conn, slave *LocalCommand) (*LocalWsSession, error)
func (*LocalWsSession) Start ¶
func (sws *LocalWsSession) Start(quitChan chan bool)
type LogicSshWsSession ¶
type LogicSshWsSession struct { IsFlagged bool // contains filtered or unexported fields }
func NewLogicSshWsSession ¶
func (*LogicSshWsSession) Close ¶
func (sws *LogicSshWsSession) Close()
func (*LogicSshWsSession) Start ¶
func (sws *LogicSshWsSession) Start(quitChan chan bool)
func (*LogicSshWsSession) Wait ¶
func (sws *LogicSshWsSession) Wait(quitChan chan bool)
Click to show internal directories.
Click to hide internal directories.