Documentation ¶
Index ¶
- type Code
- func (code *Code) Forward(conn *conn.Conn, w http.ResponseWriter, r *http.Request)
- func (code *Code) GetLinks() []rule.Link
- func (code *Code) GetName() string
- func (code *Code) GetPort() uint16
- func (code *Code) GetRemote() string
- func (code *Code) GetTarget() string
- func (code *Code) GetTypeName() string
- func (code *Code) Handle(c *conn.Conn)
- func (code *Code) Info(w http.ResponseWriter, r *http.Request)
- func (code *Code) New(conn *conn.Conn, w http.ResponseWriter, r *http.Request)
- func (code *Code) NewLink(id, remote string, localConn net.Conn, remoteConn *conn.Conn) rule.Link
- func (code *Code) OnDisconnect(id string)
- func (code *Code) Render(conn *conn.Conn, w http.ResponseWriter, r *http.Request)
- type Workspace
- func (ws *Workspace) Close(send bool)
- func (ws *Workspace) Exec(dir string) error
- func (ws *Workspace) Forward()
- func (ws *Workspace) GetBytes() (uint64, uint64)
- func (ws *Workspace) GetID() string
- func (ws *Workspace) GetPackets() (uint64, uint64)
- func (ws *Workspace) SendConnect(r *http.Request) (uint64, error)
- func (ws *Workspace) SendData(reqID uint64, ok bool, t int, body []byte)
- func (ws *Workspace) SendRequest(r *http.Request) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Code ¶
Code code-server handler
func (*Code) GetTypeName ¶
GetTypeName get code-server rule type name
func (*Code) Info ¶
func (code *Code) Info(w http.ResponseWriter, r *http.Request)
Info get workspace info
func (*Code) OnDisconnect ¶
OnDisconnect on disconnect message
type Workspace ¶
Workspace workspace of code-server
func (*Workspace) GetPackets ¶
GetPackets get send and recv packets
func (*Workspace) SendConnect ¶
SendConnect send websocket connect action from local node
Click to show internal directories.
Click to hide internal directories.