Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RecordData ¶
type Terminal ¶
func NewTerminal ¶
func (*Terminal) SetCloseHandler ¶
func (*Terminal) SetWinSize ¶
type WebSocketStream ¶
type WebSocketStream struct { sync.RWMutex Terminal *Terminal // ssh客户端 Conn *wsConn // socket 连接 CreatedAt models.LocalTime // 创建时间 UpdatedAt models.LocalTime // 最新的更新时间 Meta Meta // 元信息 // contains filtered or unexported fields }
func NewWebSocketSteam ¶
func NewWebSocketSteam(terminal *Terminal, connection *wsConn, meta Meta) *WebSocketStream
NewWebSocketSteam 创建websocket数据流
func (*WebSocketStream) Write2Log ¶
func (r *WebSocketStream) Write2Log() error
Click to show internal directories.
Click to hide internal directories.