internal/

directory
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0

Directories

Path Synopsis
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.
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.
Package config holds the server configuration and its flag/env parsing.
Package config holds the server configuration and its flag/env parsing.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.

Jump to

Keyboard shortcuts

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