Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type StreamHandler ¶
type StreamHandler struct { WsConn *WsConnection ResizeEvent chan remotecommand.TerminalSize }
func (*StreamHandler) Next ¶
func (handler *StreamHandler) Next() (size *remotecommand.TerminalSize)
type WsConnection ¶
type WsConnection struct { OnClose func() // contains filtered or unexported fields }
func InitWebsocket ¶
func InitWebsocket(resp http.ResponseWriter, req *http.Request) (wsConn *WsConnection, err error)
func (*WsConnection) WsClose ¶
func (wsConn *WsConnection) WsClose()
func (*WsConnection) WsRead ¶
func (wsConn *WsConnection) WsRead() (msg *WsMessage, err error)
Click to show internal directories.
Click to hide internal directories.