Documentation ¶ Index ¶ func HandleWebSocket(wsUpgrader *websocket.Upgrader, cmd Command) func(http.ResponseWriter, *http.Request) type Command type WSController func (w WSController) Read(p []byte) (n int, err error) func (w WSController) Write(p []byte) (n int, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func HandleWebSocket ¶ added in v0.2.0 func HandleWebSocket(wsUpgrader *websocket.Upgrader, cmd Command) func(http.ResponseWriter, *http.Request) Types ¶ type Command ¶ added in v0.3.0 type Command struct { Factory tty.AgentFactory AuthCheck auth.AuthCheck Writable bool } type WSController ¶ type WSController struct { *websocket.Conn } func (WSController) Read ¶ func (w WSController) Read(p []byte) (n int, err error) func (WSController) Write ¶ func (w WSController) Write(p []byte) (n int, err error) Source Files ¶ View all Source files server.go ws.go Click to show internal directories. Click to hide internal directories.