ws

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecHandler

type ExecHandler struct {
	// contains filtered or unexported fields
}

ExecHandler handles WebSocket streaming exec.

func NewExecHandler

func NewExecHandler(eng *engine.Engine, logger *slog.Logger, allowedOrigins []string) *ExecHandler

NewExecHandler creates a new WebSocket ExecHandler.

func (*ExecHandler) Handle

func (h *ExecHandler) Handle(w http.ResponseWriter, r *http.Request)

Handle upgrades HTTP to WebSocket and streams exec output.

Jump to

Keyboard shortcuts

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