Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
fakeagent
command
Command fakeagent stands in for amallo when testing the relay (or, later, a real amallo) from outside the Go test binary — see the build plan's Steps 3-5.
|
Command fakeagent stands in for amallo when testing the relay (or, later, a real amallo) from outside the Go test binary — see the build plan's Steps 3-5. |
|
fakeclient
command
Command fakeclient stands in for web when testing the relay (or, later, a real amallo) from outside the Go test binary — see the build plan's Steps 3-5.
|
Command fakeclient stands in for web when testing the relay (or, later, a real amallo) from outside the Go test binary — see the build plan's Steps 3-5. |
|
genvectors
command
Command genvectors generates the shared cross-language test vectors consumed by the relay's own tests and vendored into amallo and web (see spec/PROTOCOL.md and the build plan's Step 1).
|
Command genvectors generates the shared cross-language test vectors consumed by the relay's own tests and vendored into amallo and web (see spec/PROTOCOL.md and the build plan's Step 1). |
|
relay
command
Command relay is the OpenCharUI relay server (spec/PROTOCOL.md).
|
Command relay is the OpenCharUI relay server (spec/PROTOCOL.md). |
|
internal
|
|
|
auth
Package auth defines the relay's pluggable authorization seam.
|
Package auth defines the relay's pluggable authorization seam. |
|
config
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). |
|
hub
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. |
|
limits
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). |
|
logging
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. |
|
metrics
Package metrics defines the relay's Prometheus collectors.
|
Package metrics defines the relay's Prometheus collectors. |
|
proto
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). |
|
server
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. |
|
testclient
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. |
|
wire
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). |
Click to show internal directories.
Click to hide internal directories.