Documentation ¶
Index ¶
Constants ¶
View Source
const ( ON_CONNECTION = "connection" ON_DISCONNECTION = "disconnection" ON_ERROR = "error" DISCONNECT_EVENT = "disconnect" OUTPUT_EVENT = "output" INPUT_EVENT = "input" RESIZE_EVENT = "resize" COMMAND_QUERY = "command" ARGS_QUERY = "args" )
View Source
const ( BINARY_PROTOL = "binary" BASE64_PROTOL = "base64" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionServer ¶
type ConnectionServer struct { }
func NewConnectionServer ¶
func NewConnectionServer() *ConnectionServer
func (*ConnectionServer) ServeHTTP ¶
func (s *ConnectionServer) ServeHTTP(w http.ResponseWriter, req *http.Request)
type WebsocketProxyServer ¶
type WebsocketProxyServer struct { Session *session.SSession // contains filtered or unexported fields }
func NewWebsocketProxyServer ¶
func NewWebsocketProxyServer(s *session.SSession) (*WebsocketProxyServer, error)
func (*WebsocketProxyServer) ServeHTTP ¶
func (s *WebsocketProxyServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
type WebsockifyServer ¶
func NewWebsockifyServer ¶
func NewWebsockifyServer(s *session.SSession) (*WebsockifyServer, error)
func (*WebsockifyServer) ReadFromWs ¶
func (s *WebsockifyServer) ReadFromWs(wsConn *websocket.Conn) ([]byte, error)
func (*WebsockifyServer) ServeHTTP ¶
func (s *WebsockifyServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.