Directories
¶
| Path | Synopsis |
|---|---|
|
Package adminapi is the wire contract of the relay's R39 admin API (docs/42 §4.5): the response types GET /internal/admin/broadcasts serves and gawk-admin's relayscan parses.
|
Package adminapi is the wire contract of the relay's R39 admin API (docs/42 §4.5): the response types GET /internal/admin/broadcasts serves and gawk-admin's relayscan parses. |
|
cmd
|
|
|
gawk-devcert
command
gawk-devcert generates a self-signed development certificate that Chromium accepts for WebTransport (ECDSA P-256, ≤ 14 days), writes it as a PEM pair and prints the hashes and ready-to-paste snippets needed to connect to it from a browser.
|
gawk-devcert generates a self-signed development certificate that Chromium accepts for WebTransport (ECDSA P-256, ≤ 14 days), writes it as a PEM pair and prints the hashes and ready-to-paste snippets needed to connect to it from a browser. |
|
gawk-echo
command
gawk-echo is a CLI connectivity probe: it dials a running gawk-server's /echo endpoint over WebTransport, round-trips a datagram and prints the round-trip time.
|
gawk-echo is a CLI connectivity probe: it dials a running gawk-server's /echo endpoint over WebTransport, round-trips a datagram and prints the round-trip time. |
|
gawk-loadgen
command
gawk-loadgen is the R17 W6 scale-proof tool: N synthetic viewers against one broadcast, counting what a real viewer would care about — complete frames, keyframe streams, frameID gaps (upstream loss/reorder visible at the subscriber), and bytes — aggregated across all sessions and reported periodically.
|
gawk-loadgen is the R17 W6 scale-proof tool: N synthetic viewers against one broadcast, counting what a real viewer would care about — complete frames, keyframe streams, frameID gaps (upstream loss/reorder visible at the subscriber), and bytes — aggregated across all sessions and reported periodically. |
|
gawk-roomsim
command
Command gawk-roomsim is a synthetic room participant (R42 RM3, docs/44 §4.5): it dials CONNECT /room/{code} (or mints a room from a live broadcast with -mint), sends RoomHello on the one control stream, and prints every RoomState and RoomEvent it receives as one JSON line each on stdout — so a shell harness can assert on the roster, the attachments and the room's HMAC'd key with jq, the way gawk-loadgen lets it assert on close codes.
|
Command gawk-roomsim is a synthetic room participant (R42 RM3, docs/44 §4.5): it dials CONNECT /room/{code} (or mints a room from a live broadcast with -mint), sends RoomHello on the one control stream, and prints every RoomState and RoomEvent it receives as one JSON line each on stdout — so a shell harness can assert on the roster, the attachments and the room's HMAC'd key with jq, the way gawk-loadgen lets it assert on close codes. |
|
gawk-server
command
gawk-server is the WebTransport relay for the gawk game stream: one publisher fans out encoded video datagrams to a small set of subscribers.
|
gawk-server is the WebTransport relay for the gawk game stream: one publisher fans out encoded video datagrams to a small set of subscribers. |
|
Package events is the event contract of a gawk deployment (R51, docs/52).
|
Package events is the event contract of a gawk deployment (R51, docs/52). |
|
internal
|
|
|
clientinfo
Package clientinfo turns the client-identity dial parameters (R59, docs/61 D1) into metric label values from a closed vocabulary.
|
Package clientinfo turns the client-identity dial parameters (R59, docs/61 D1) into metric label values from a closed vocabulary. |
|
cluster
Package cluster implements the per-broadcast origin registry (R17 W3, docs/22 Decision 8): one Kubernetes Lease per broadcast, named gawk-bc-<id>, holder = pod name, annotations carrying the origin's dialable pod address and an originGeneration counter bumped on every claim.
|
Package cluster implements the per-broadcast origin registry (R17 W3, docs/22 Decision 8): one Kubernetes Lease per broadcast, named gawk-bc-<id>, holder = pod name, annotations carrying the origin's dialable pod address and an originGeneration counter bumped on every claim. |
|
config
Package config holds the server configuration and its flag/env parsing.
|
Package config holds the server configuration and its flag/env parsing. |
|
eventbus
Package eventbus publishes relay lifecycle events to an operator-provided NATS JetStream (R50, docs/51).
|
Package eventbus publishes relay lifecycle events to an operator-provided NATS JetStream (R50, docs/51). |
|
hub
Package hub implements the relay's pub/sub core: a registry of broadcast sessions, where each broadcast has a publisher fanning encoded video out to a small set of subscribers.
|
Package hub implements the relay's pub/sub core: a registry of broadcast sessions, where each broadcast has a publisher fanning encoded video out to a small set of subscribers. |
|
mediaprobe
Package mediaprobe reads a broadcast's codec family and coded resolution out of the media the relay already carries (R59, docs/61 D2): the codec string of a DecoderConfig, the SPS of an H.264 stream (AVCC extradata or an in-band Annex B NAL), and the keyframe headers of VP8 and VP9.
|
Package mediaprobe reads a broadcast's codec family and coded resolution out of the media the relay already carries (R59, docs/61 D2): the codec string of a DecoderConfig, the SPS of an H.264 stream (AVCC extradata or an in-band Annex B NAL), and the keyframe headers of VP8 and VP9. |
|
metrics
Package metrics owns everything Prometheus (R9, docs/13): the base registry (runtime collectors + build info), the hub registry collector, and the transport-layer connection counters.
|
Package metrics owns everything Prometheus (R9, docs/13): the base registry (runtime collectors + build info), the hub registry collector, and the transport-layer connection counters. |
|
moderationsrc
Package moderationsrc feeds a moderation.Set from the configured ban source (R39 AP2, docs/42 §4.3): a Kubernetes informer on Ban CRs, a JSON file, or nothing at all.
|
Package moderationsrc feeds a moderation.Set from the configured ban source (R39 AP2, docs/42 §4.3): a Kubernetes informer on Ban CRs, a JSON file, or nothing at all. |
|
ops
Package ops serves the plain-TCP HTTP operations endpoint (R9 M1, docs/13): /metrics (Prometheus), /healthz, and /statusz.
|
Package ops serves the plain-TCP HTTP operations endpoint (R9 M1, docs/13): /metrics (Prometheus), /healthz, and /statusz. |
|
roomcluster
Package roomcluster is the cluster-mode half of rooms (R42, docs/44 §4.3, §4.5, RM3): the Room custom resource as the fleet's shared truth, and the home-pod lease on its status with the R17 origin-lease semantics (internal/cluster) — claim, generation CAS, renew, release on drain, force-take on a stale lease, a leaderless janitor.
|
Package roomcluster is the cluster-mode half of rooms (R42, docs/44 §4.3, §4.5, RM3): the Room custom resource as the fleet's shared truth, and the home-pod lease on its status with the R17 origin-lease semantics (internal/cluster) — claim, generation CAS, renew, release on drain, force-take on a stale lease, a leaderless janitor. |
|
roomsrc
Package roomsrc feeds static room definitions into the room registry (R42, docs/44 §4.3 "non-cluster mode"): a JSON file of rooms.FileRoom entries, reloaded on change and on SIGHUP.
|
Package roomsrc feeds static room definitions into the room registry (R42, docs/44 §4.3 "non-cluster mode"): a JSON file of rooms.FileRoom entries, reloaded on change and on SIGHUP. |
|
roomsrv
Package roomsrv is the relay's room registry (R42, docs/44 §4.4–4.7, RM2): the control-plane state a room is made of — attachments, participants, grants, the empty grace, the limits — and the fan-out of RoomState / RoomEvent records to every control session.
|
Package roomsrv is the relay's room registry (R42, docs/44 §4.4–4.7, RM2): the control-plane state a room is made of — attachments, participants, grants, the empty grace, the limits — and the fan-out of RoomState / RoomEvent records to every control session. |
|
tlsutil
Package tlsutil provides the two certificate paths the server supports: ephemeral self-signed dev certificates that Chromium accepts for WebTransport, and file-backed certificates (e.g.
|
Package tlsutil provides the two certificate paths the server supports: ephemeral self-signed dev certificates that Chromium accepts for WebTransport, and file-backed certificates (e.g. |
|
transport
Edge pull (R17 W4, docs/22 Decisions 9/10/12): when a viewer lands on a pod that is not a broadcast's origin, the pod subscribes upstream — dialing the origin's POD IP from the Lease (never the Service VIP: guard 1 against loops) over the same WebTransport wire protocol — and re-ingests everything into a local EDGE hub through the ordinary Publisher surface: datagrams verbatim, keyframe streams byte-identical, so store-and-forward + supersede compose per hop.
|
Edge pull (R17 W4, docs/22 Decisions 9/10/12): when a viewer lands on a pod that is not a broadcast's origin, the pod subscribes upstream — dialing the origin's POD IP from the Lease (never the Service VIP: guard 1 against loops) over the same WebTransport wire protocol — and re-ingests everything into a local EDGE hub through the ordinary Publisher surface: datagrams verbatim, keyframe streams byte-identical, so store-and-forward + supersede compose per hop. |
|
Package moderation is the shared vocabulary of R39 enforcement (docs/42): the Ban CRD Go types, target normalization, deterministic CR naming, and the in-memory Set the relay evaluates on the publish hot path.
|
Package moderation is the shared vocabulary of R39 enforcement (docs/42): the Ban CRD Go types, target normalization, deterministic CR naming, and the in-memory Set the relay evaluates on the publish hot path. |
|
Package oidcauth is the one OIDC bearer-token verifier in this repository (R53, docs/55 D2): the relay's admin API (internal/ops), the moderation portal (gawk-admin) and the telemetry service all verify through it.
|
Package oidcauth is the one OIDC bearer-token verifier in this repository (R53, docs/55 D2): the relay's admin API (internal/ops), the moderation portal (gawk-admin) and the telemetry service all verify through it. |
|
oidcauthtest
Package oidcauthtest is the fake OIDC issuer every oidcauth consumer tests against (R53, docs/55 D2): a real HTTP server serving /.well-known/openid-configuration and a JWKS, with locally generated keys that tokens are minted against.
|
Package oidcauthtest is the fake OIDC issuer every oidcauth consumer tests against (R53, docs/55 D2): a real HTTP server serving /.well-known/openid-configuration and a JWKS, with locally generated keys that tokens are minted against. |
|
Package oidcroles resolves the roles claim inside an OIDC token: one implementation of "which roles does this token carry?", shared by the relay's ops listener (gawk-server/internal/ops) and the portal (gawk-admin's internal/auth).
|
Package oidcroles resolves the roles claim inside an OIDC token: one implementation of "which roles does this token carry?", shared by the relay's ops listener (gawk-server/internal/ops) and the portal (gawk-admin's internal/auth). |
|
Package rooms holds the Room custom resource types and the room-code rules shared by the relay and gawk-admin (R42, docs/44 §4.3, RM1).
|
Package rooms holds the Room custom resource types and the room-code rules shared by the relay and gawk-admin (R42, docs/44 §4.3, RM1). |
|
Telemetry session tokens (R28 TM1, docs/33 D2 + §4.2).
|
Telemetry session tokens (R28 TM1, docs/33 D2 + §4.2). |
Click to show internal directories.
Click to hide internal directories.