Documentation ¶
Index ¶
- type Conn
- func (conn *Conn) AddLink(id string)
- func (conn *Conn) ChanClose(id string)
- func (conn *Conn) ChanDisconnect() <-chan string
- func (conn *Conn) ChanRead(id string) <-chan *network.Msg
- func (conn *Conn) ChanUnknown() <-chan *network.Msg
- func (conn *Conn) Requeue(id string, msg *network.Msg)
- func (conn *Conn) SendCodeConnect(to, linkID string, requestID uint64, uri string, header http.Header) uint64
- func (conn *Conn) SendCodeData(to, linkID string, requestID uint64, ok bool, t int, body []byte) uint64
- func (conn *Conn) SendCodeRequest(to, linkID string, requestID uint64, method, uri string, body []byte, ...) uint64
- func (conn *Conn) SendCodeResponseBody(to, linkID string, requestID uint64, idx uint32, ok, done bool, data []byte) uint64
- func (conn *Conn) SendCodeResponseConnect(to, linkID string, requestID uint64, ok bool, msg string, header http.Header) uint64
- func (conn *Conn) SendCodeResponseHeader(to, linkID string, requestID uint64, code uint32, header http.Header) uint64
- func (conn *Conn) SendConnectError(to string, id, info string)
- func (conn *Conn) SendConnectOK(to string, id string)
- func (conn *Conn) SendConnectReq(id string, cfg global.Rule)
- func (conn *Conn) SendConnectVnc(id string, cfg global.Rule, quality uint64, showCursor bool)
- func (conn *Conn) SendDisconnect(to string, id string) uint64
- func (conn *Conn) SendKeepalive()
- func (conn *Conn) SendShellData(to string, id string, data []byte) uint64
- func (conn *Conn) SendShellResize(to string, id string, rows, cols uint32)
- func (conn *Conn) SendVNCCADEvent(to string, id string)
- func (conn *Conn) SendVNCClipboardData(to string, id string, set bool, data string)
- func (conn *Conn) SendVNCCtrl(to string, id string, quality uint64, showCursor bool)
- func (conn *Conn) SendVNCImage(to string, id string, screen, rect image.Rectangle, ...)
- func (conn *Conn) SendVNCKeyboard(to string, id string, status, key string)
- func (conn *Conn) SendVNCMouse(to string, id string, button, status string, x, y int)
- func (conn *Conn) SendVNCScroll(to string, id string, x, y int32)
- func (conn *Conn) Wait()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
Conn connection
func (*Conn) ChanDisconnect ¶ added in v0.10.0
ChanDisconnect get channel of disconnect
func (*Conn) ChanUnknown ¶
ChanUnknown get channel of unknown link id
func (*Conn) SendCodeConnect ¶ added in v0.10.0
func (conn *Conn) SendCodeConnect(to, linkID string, requestID uint64, uri string, header http.Header) uint64
SendCodeConnect send connect
func (*Conn) SendCodeData ¶ added in v0.10.0
func (conn *Conn) SendCodeData(to, linkID string, requestID uint64, ok bool, t int, body []byte) uint64
SendCodeData send data
func (*Conn) SendCodeRequest ¶ added in v0.10.0
func (conn *Conn) SendCodeRequest(to, linkID string, requestID uint64, method, uri string, body []byte, header http.Header) uint64
SendCodeRequest send request
func (*Conn) SendCodeResponseBody ¶ added in v0.10.0
func (conn *Conn) SendCodeResponseBody(to, linkID string, requestID uint64, idx uint32, ok, done bool, data []byte) uint64
SendCodeResponseBody send response body
func (*Conn) SendCodeResponseConnect ¶ added in v0.10.0
func (conn *Conn) SendCodeResponseConnect(to, linkID string, requestID uint64, ok bool, msg string, header http.Header) uint64
SendCodeResponseConnect send response connect
func (*Conn) SendCodeResponseHeader ¶ added in v0.10.0
func (conn *Conn) SendCodeResponseHeader(to, linkID string, requestID uint64, code uint32, header http.Header) uint64
SendCodeResponseHeader send response header
func (*Conn) SendConnectError ¶
SendConnectError send connect error response message
func (*Conn) SendConnectOK ¶
SendConnectOK send connect success response message
func (*Conn) SendConnectReq ¶
SendConnectReq send connect request message
func (*Conn) SendConnectVnc ¶
SendConnectVnc send connect vnc request message
func (*Conn) SendDisconnect ¶
SendDisconnect send disconnect message
func (*Conn) SendShellData ¶
SendShellData send shell data
func (*Conn) SendShellResize ¶
SendShellResize send shell resize
func (*Conn) SendVNCCADEvent ¶
SendVNCCADEvent send vnc keyboard event
func (*Conn) SendVNCClipboardData ¶
SendVNCClipboardData send vnc clipboard data
func (*Conn) SendVNCCtrl ¶
SendVNCCtrl send vnc config
func (*Conn) SendVNCImage ¶
func (conn *Conn) SendVNCImage(to string, id string, screen, rect image.Rectangle, encode network.VncImageEncoding, data []byte)
SendVNCImage send vnc image data
func (*Conn) SendVNCKeyboard ¶
SendVNCKeyboard send vnc keyboard event
func (*Conn) SendVNCMouse ¶
SendVNCMouse send vnc mouse event
func (*Conn) SendVNCScroll ¶
SendVNCScroll send vnc scroll event