internal/

directory
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 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 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.
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 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.
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.
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).
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.
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.
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).
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.
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).
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.
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.
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 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.
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 (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.

Jump to

Keyboard shortcuts

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