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-camsim
command
Command gawk-camsim is a room participant that watches a camera and does not behave (R89 CM8, docs/93 D22, §5.2 steps 5 and 6).
|
Command gawk-camsim is a room participant that watches a camera and does not behave (R89 CM8, docs/93 D22, §5.2 steps 5 and 6). |
|
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-pubsim
command
Command gawk-pubsim publishes the committed H.264 test fixture to a gawk relay in a loop — a deterministic synthetic broadcaster (R20, docs/25 Decision 3).
|
Command gawk-pubsim publishes the committed H.264 test fixture to a gawk relay in a loop — a deterministic synthetic broadcaster (R20, docs/25 Decision 3). |
|
gawk-relay
command
gawk-relay is the standalone LAN relay (R74, docs/76 §6.1): the same relay as gawk-server, with LAN-shaped defaults, a state directory and a rolling pinned certificate, so a party host can start it with no flags at all.
|
gawk-relay is the standalone LAN relay (R74, docs/76 §6.1): the same relay as gawk-server, with LAN-shaped defaults, a state directory and a rolling pinned certificate, so a party host can start it with no flags at all. |
|
gawk-relay/webapp
Package webapp is the gawk-app build that gawk-relay serves to the host's own machine at http://127.0.0.1:4480/app/ (docs/76 §6.1 item 6) and, on the named tier, over HTTPS on -ui-addr (§6.11 item 39).
|
Package webapp is the gawk-app build that gawk-relay serves to the host's own machine at http://127.0.0.1:4480/app/ (docs/76 §6.1 item 6) and, on the named tier, over HTTPS on -ui-addr (§6.11 item 39). |
|
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. |
|
gawk-uplinklab
command
Command gawk-uplinklab measures the broadcaster → relay leg (docs/75): a receiver built on the relay's own QUIC stack and configuration, and a deterministic UDP impairment proxy to put in front of it.
|
Command gawk-uplinklab measures the broadcaster → relay leg (docs/75): a receiver built on the relay's own QUIC stack and configuration, and a deterministic UDP impairment proxy to put in front of it. |
|
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. |
|
lanaddr
Package lanaddr finds the address a LAN relay advertises (R74 PP2, docs/76 §6.1 item 4): the IPv4 address of the interface that holds the default route, with loopback, link-local, container and virtual bridges, VPN tunnels and every non-private address (CGNAT and public ones included) excluded.
|
Package lanaddr finds the address a LAN relay advertises (R74 PP2, docs/76 §6.1 item 4): the IPv4 address of the interface that holds the default route, with loopback, link-local, container and virtual bridges, VPN tunnels and every non-private address (CGNAT and public ones included) excluded. |
|
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. |
|
popclient
Package popclient is the PoP side of R74 PoP relays (docs/76): pairing with a home fleet, holding the link, and forwarding broadcasts between the party LAN and home.
|
Package popclient is the PoP side of R74 PoP relays (docs/76): pairing with a home fleet, holding the link, and forwarding broadcasts between the party LAN and home. |
|
poplink
Package poplink is the R74 home↔PoP link protocol (docs/76): length-prefixed JSON records exchanged between a PoP relay and its home fleet over the link session.
|
Package poplink is the R74 home↔PoP link protocol (docs/76): length-prefixed JSON records exchanged between a PoP relay and its home fleet over the link session. |
|
popsrc
Package popsrc feeds R74 Pop definitions (docs/76 §9) to the home side: the Pop CRs through an informer in cluster mode (StartK8s), or a -pops-file of pops.FilePop entries elsewhere (StartFile).
|
Package popsrc feeds R74 Pop definitions (docs/76 §9) to the home side: the Pop CRs through an informer in cluster mode (StartK8s), or a -pops-file of pops.FilePop entries elsewhere (StartFile). |
|
popsrv
Package popsrv is the home side of R74 PoP relays (docs/76): pairing, link authentication, the link lease and the per-PoP subsystems a home fleet runs.
|
Package popsrv is the home side of R74 PoP relays (docs/76): pairing, link authentication, the link lease and the per-PoP subsystems a home fleet runs. |
|
pubsim
Package pubsim is the synthetic fixture publisher behind cmd/gawk-pubsim (R20, docs/25 Decision 3): the committed H.264 fixture demuxed into access units once, then looped through the real engine at a live pace.
|
Package pubsim is the synthetic fixture publisher behind cmd/gawk-pubsim (R20, docs/25 Decision 3): the committed H.264 fixture demuxed into access units once, then looped through the real engine at a live pace. |
|
pubsim/fixture
Package fixture holds the committed H.264 MPEG-TS test stream (see README.md for its provenance and the properties tests depend on).
|
Package fixture holds the committed H.264 MPEG-TS test stream (see README.md for its provenance and the properties tests depend on). |
|
pubsim/mpegts
Package mpegts is a deliberately minimal MPEG-TS demuxer: enough to recover access-unit boundaries from the GStreamer child's stdout, and nothing more.
|
Package mpegts is a deliberately minimal MPEG-TS demuxer: enough to recover access-unit boundaries from the GStreamer child's stdout, and nothing more. |
|
pubsim/opus
Package opus reads the one byte of an Opus packet that describes the packet: its TOC (RFC 6716 §3.1).
|
Package opus reads the one byte of an Opus packet that describes the packet: its TOC (RFC 6716 §3.1). |
|
relayconsole
Package relayconsole is gawk-relay's host console (R74 PP3, docs/76 §7.1): a small web page on a loopback-only listener, by default http://127.0.0.1:4480, that shows the host how guests join, what is live, what the party's internet carries and what needs fixing, and takes the pairing string.
|
Package relayconsole is gawk-relay's host console (R74 PP3, docs/76 §7.1): a small web page on a loopback-only listener, by default http://127.0.0.1:4480, that shows the host how guests join, what is live, what the party's internet carries and what needs fixing, and takes the pairing string. |
|
relaystate
Package relaystate is gawk-relay's state directory (R74 PP2, docs/76 §6.1): one place, owner-only, for the persisted QUIC/resume/stats keys, the rolling pinned certificate and, once paired, the PoP credential.
|
Package relaystate is gawk-relay's state directory (R74 PP2, docs/76 §6.1): one place, owner-only, for the persisted QUIC/resume/stats keys, the rolling pinned certificate and, once paired, the PoP credential. |
|
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. |
|
serve
Package serve runs a relay: the hub, the WebTransport server, the rooms, the cluster and moderation wiring and the ops listener.
|
Package serve runs a relay: the hub, the WebTransport server, the rooms, the cluster and moderation wiring and the ops listener. |
|
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 (docs/22): 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 (which could loop back) — and re-ingests everything into a local edge hub through the ordinary Publisher surface, datagrams and keyframe streams verbatim, so store-and-forward and supersede compose per hop.
|
Edge pull (docs/22): 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 (which could loop back) — and re-ingests everything into a local edge hub through the ordinary Publisher surface, datagrams and keyframe streams verbatim, so store-and-forward and 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 pops holds the public R74 Pop resource types (docs/76): the gawk.ioio.fi/v1alpha1 Pop CR, its -pops-file shape, pairing tokens and credentials.
|
Package pops holds the public R74 Pop resource types (docs/76): the gawk.ioio.fi/v1alpha1 Pop CR, its -pops-file shape, pairing tokens and credentials. |
|
Package publisher publishes encoded media to the relay using the same publisher protocol the browser broadcaster speaks — byte for byte, via the shared gawk-server/wire package.
|
Package publisher publishes encoded media to the relay using the same publisher protocol the browser broadcaster speaks — byte for byte, via the shared gawk-server/wire package. |
|
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). |
|
Package screening is the contract of R40's automatic content flagging (docs/71 D3): what the relay's keyframe route serves, what gawk-admin's flagger API accepts and answers, and the window rule both the sampler and gawk-admin's replay apply.
|
Package screening is the contract of R40's automatic content flagging (docs/71 D3): what the relay's keyframe route serves, what gawk-admin's flagger API accepts and answers, and the window rule both the sampler and gawk-admin's replay apply. |
|
Package voice is the contract between the relay and gawk-mumble-bridge (R79, docs/80): the voice ticket the relay's home pod mints and the bridge verifies offline (D7), the fleet-stable temporary channel key (D11), and the two internal links that keep the relay the authority over voice (D2): the observer link (relay → bridge) and the session link (bridge → relay).
|
Package voice is the contract between the relay and gawk-mumble-bridge (R79, docs/80): the voice ticket the relay's home pod mints and the bridge verifies offline (D7), the fleet-stable temporary channel key (D11), and the two internal links that keep the relay the authority over voice (D2): the observer link (relay → bridge) and the session link (bridge → relay). |
|
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.