server

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL