Documentation ¶
Index ¶
- Constants
- type AuthDTO
- type Client
- func (c *Client) Close() error
- func (c *Client) Pause()
- func (c *Client) Redial(token *string) error
- func (c *Client) RequestBaudrateDetection()
- func (c *Client) ResizeTerminal(cols int, rows int)
- func (c *Client) Resume()
- func (c *Client) Run(watchdog int)
- func (c *Client) SendBreak()
- func (c *Client) SoftClose() error
- type ResizeTerminalDTO
- type TtyClientOps
Constants ¶
View Source
const ( // Client messages MsgInput byte = '0' MsgResizeTerminal byte = '1' MsgPause byte = '2' MsgResume byte = '3' MsgJsonData byte = '{' MsgBreak byte = 'b' // Both MsgDetectBaudrate byte = 'B' // Server messages MsgOutput byte = '0' MsgSetWindowTitle byte = '1' MsgPreferences byte = '2' MsgServerPause byte = 'S' MsgServerResume byte = 'Q' )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseUrl *url.URL WsClient *websocket.Conn HttpResp *http.Response WinTitle <-chan []byte Output <-chan []byte Input chan<- []byte DetectedBaudrate <-chan [2]int64 Error <-chan error CloseChan <-chan interface{} // contains filtered or unexported fields }
func DialAndAuth ¶
func (*Client) RequestBaudrateDetection ¶
func (c *Client) RequestBaudrateDetection()
func (*Client) ResizeTerminal ¶
type ResizeTerminalDTO ¶
Click to show internal directories.
Click to hide internal directories.