internal/

directory
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: AGPL-3.0

Directories

Path Synopsis
Package auth defines the relay's pluggable authorization seam.
Package auth defines the relay's pluggable authorization seam.
Package config loads and validates the relay's runtime configuration from environment variables (see the build plan's Step 2 and the deploy compose files).
Package config loads and validates the relay's runtime configuration from environment variables (see the build plan's Step 2 and the deploy compose files).
Package hub implements pair registration and the two-connection splice: which agent socket and which client socket belong together, and the locking discipline that keeps that bookkeeping safe under concurrent connects/disconnects.
Package hub implements pair registration and the two-connection splice: which agent socket and which client socket belong together, and the locking discipline that keeps that bookkeeping safe under concurrent connects/disconnects.
Package limits implements the relay's two rate controls: a per-pair byte budget (protects one pair's bandwidth from starving others sharing the host) and a per-IP connection-attempt budget (bounds the cost of unauthenticated upgrade attempts before a pair even exists).
Package limits implements the relay's two rate controls: a per-pair byte budget (protects one pair's bandwidth from starving others sharing the host) and a per-IP connection-attempt budget (bounds the cost of unauthenticated upgrade attempts before a pair even exists).
Package logging sets up structured slog logging and provides PairTag, the one function every log call site touching a pair_id MUST go through.
Package logging sets up structured slog logging and provides PairTag, the one function every log call site touching a pair_id MUST go through.
Package metrics defines the relay's Prometheus collectors.
Package metrics defines the relay's Prometheus collectors.
Package proto is a reference implementation of the OpenCharUI E2E handshake and AEAD session (spec/PROTOCOL.md §4-§6).
Package proto is a reference implementation of the OpenCharUI E2E handshake and AEAD session (spec/PROTOCOL.md §4-§6).
Package server wires the hub, auth, limits and metrics packages into an http.Handler serving the two upgrade endpoints (/v1/agent, /v1/client) and /healthz.
Package server wires the hub, auth, limits and metrics packages into an http.Handler serving the two upgrade endpoints (/v1/agent, /v1/client) and /healthz.
Package testclient is the shared connect/handshake/framing logic behind cmd/fakeagent and cmd/fakeclient — standalone processes that speak the real relay protocol (spec/PROTOCOL.md) for testing the relay, and later amallo and web, from outside the Go test binary.
Package testclient is the shared connect/handshake/framing logic behind cmd/fakeagent and cmd/fakeclient — standalone processes that speak the real relay protocol (spec/PROTOCOL.md) for testing the relay, and later amallo and web, from outside the Go test binary.
Package wire implements the OpenCharUI relay wire format: the outer frame (relay-visible) and the inner frame (carried inside decrypted channel-0x01 payloads).
Package wire implements the OpenCharUI relay wire format: the outer frame (relay-visible) and the inner frame (carried inside decrypted channel-0x01 payloads).

Jump to

Keyboard shortcuts

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