Documentation
¶
Index ¶
- Constants
- func NewEscapeProxy(r io.Reader, escapeKeys []byte) io.Reader
- type Client
- func (c *Client) Connect() error
- func (c *Client) Loop() error
- func (c *Client) ProcessStatusDataChannel(payload []byte) error
- func (c *Client) SendCloseMessage() (err error)
- func (c *Client) SendKeepAliveDataMessage() (err error)
- func (c *Client) SendResizeDataMessage(inputData []byte) (err error)
- func (c *Client) SendStreamDataMessage(inputData []byte) (err error)
- type EscapeError
Constants ¶
View Source
const ( EXIT = "Exit" AGENT_TIMEOUT = "AgentTimeout" INIT_CHANNEL_FAILED = "InitChannelFailed" OPEN_CHANNEL_FAILED = "OpenChannelFailed" SESSIONID_DUPLICATED = "SessionIdDuplicated" PROCESS_DATA_ERROR = "ProcessDataError" OPEN_PTY_FAILED = "OpenPtyFailed" FLOW_EXCEED_LIMIT = "FlowExceedLimit" )
状态码为5时可能的错误码
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { Dialer *websocket.Dialer Conn *websocket.Conn URL string Connected bool Output io.Writer Input io.ReadCloser WriteMutex *sync.Mutex EscapeKeys []byte PortForward bool // true means the client is for portforward StreamDataSequenceNumber int64 // contains filtered or unexported fields }
func (*Client) ProcessStatusDataChannel ¶
func (*Client) SendCloseMessage ¶
func (*Client) SendKeepAliveDataMessage ¶
func (*Client) SendResizeDataMessage ¶
func (*Client) SendStreamDataMessage ¶
type EscapeError ¶
type EscapeError struct{}
EscapeError is special error which returned by a TTY proxy reader's Read() method in case its detach escape sequence is read.
func (EscapeError) Error ¶
func (EscapeError) Error() string
Click to show internal directories.
Click to hide internal directories.