wsproxy

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package wsproxy contains the bootstrap logic for the wsproxy sidecar (cmd/wsproxy). It hosts two endpoints:

  • Terminal WebSocket proxy (default :9003): routes dashboard terminal connections to the appropriate Worker cluster's sandbox terminal endpoint.
  • Sync manager + internal HTTP API (default :9004, enabled when AGENTBOX_SYNC_TOKEN is set): maintains persistent WebSocket connections to every Worker cluster and exposes /internal/* endpoints for the Dashboard BFF to manage global API keys and SandboxTemplates.

Downstream (closed-source) distributions should import this package and invoke Run() from their thin main() wrapper so they stay in sync with upstream wiring changes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Run is the single entry point for cmd/wsproxy. It reads configuration from environment variables, starts the terminal proxy, and optionally starts the sync manager + internal HTTP API. Blocks forever.

Types

This section is empty.

Jump to

Keyboard shortcuts

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