internal/

directory
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: AGPL-3.0

Directories

Path Synopsis
Package adpcm encodes 16 bit mono PCM as IMA ADPCM, the "DVI4" variant the Reolink cameras accept for two-way audio.
Package adpcm encodes 16 bit mono PCM as IMA ADPCM, the "DVI4" variant the Reolink cameras accept for two-way audio.
Package alarms follows a camera's own detection state: it holds a Baichuan session subscribed to alarm events (message 31, then 33 pushes) and reports each change -- motion starting or stopping, an object type appearing or going away.
Package alarms follows a camera's own detection state: it holds a Baichuan session subscribed to alarm events (message 31, then 33 pushes) and reports each change -- motion starting or stopping, an object type appearing or going away.
Package baichuan implements the Reolink Baichuan protocol.
Package baichuan implements the Reolink Baichuan protocol.
Package bcevent interprets the cloud event reports a battery camera emits (bcudp cf31 packets) as motion, recording and status.
Package bcevent interprets the cloud event reports a battery camera emits (bcudp cf31 packets) as motion, recording and status.
Package bcudp carries a Baichuan byte stream over the UDP transport that battery cameras speak instead of TCP port 9000.
Package bcudp carries a Baichuan byte stream over the UDP transport that battery cameras speak instead of TCP port 9000.
Package cgi talks to a Reolink camera's HTTP API.
Package cgi talks to a Reolink camera's HTTP API.
Package config loads the TOML file that lists the cameras reostream serves.
Package config loads the TOML file that lists the cameras reostream serves.
Accounts: read only, on purpose, with no exception carved out anywhere in this file.
Accounts: read only, on purpose, with no exception carved out anywhere in this file.
Package fakecam fakes a Baichuan camera for tests, without a socket library of its own and without any protocol logic.
Package fakecam fakes a Baichuan camera for tests, without a socket library of its own and without any protocol logic.
Package fakenvr fakes a Reolink NVR's Baichuan port for tests: it logs a client in, then serves every preview the client asks for, as many as it asks for and on as many channels, interleaved on the one connection the way a recorder interleaves them.
Package fakenvr fakes a Reolink NVR's Baichuan port for tests: it logs a client in, then serves every preview the client asks for, as many as it asks for and on as many channels, interleaved on the one connection the way a recorder interleaves them.
Package frames serves a camera stream's access units over HTTP, one length-prefixed record per frame, for a client that owns its own decoder.
Package frames serves a camera stream's access units over HTTP, one length-prefixed record per frame, for a client that owns its own decoder.
Package ftpd is the small FTP server cameras upload their clips to.
Package ftpd is the small FTP server cameras upload their clips to.
Package hub broadcasts MPEG-TS chunks from one camera goroutine to any number of HTTP clients.
Package hub broadcasts MPEG-TS chunks from one camera goroutine to any number of HTTP clients.
Package mp4read reads the video track of the MP4 files Reolink cameras write (to their SD card, and over FTP): a plain moov with an avc1 or hvc1 track, or a fragmented file (battery doorbells) whose moov is empty and whose samples sit in moof+mdat pairs.
Package mp4read reads the video track of the MP4 files Reolink cameras write (to their SD card, and over FTP): a plain moov with an avc1 or hvc1 track, or a fragmented file (battery doorbells) whose moov is empty and whose samples sit in moof+mdat pairs.
Package mqtt is a minimal MQTT 3.1.1 client: enough to feed motion and status into mosquitto / Home Assistant / Frigate, and to hear another tool's motion (Subscribe), without pulling in a full client library.
Package mqtt is a minimal MQTT 3.1.1 client: enough to feed motion and status into mosquitto / Home Assistant / Frigate, and to hear another tool's motion (Subscribe), without pulling in a full client library.
Package presence keeps a battery camera present to a recorder without waking it.
Package presence keeps a battery camera present to a recorder without waking it.
Package rtsp serves camera streams over RTSP.
Package rtsp serves camera streams over RTSP.
Package server exposes hub streams as MPEG-TS over HTTP.
Package server exposes hub streams as MPEG-TS over HTTP.
Package stream joins one camera to one hub: dial, depacketize, mux, publish, on repeat until the context is canceled or something fails.
Package stream joins one camera to one hub: dial, depacketize, mux, publish, on repeat until the context is canceled or something fails.
Package supervisor keeps every configured camera stream running, one goroutine per stream, restarting it with backoff when it fails.
Package supervisor keeps every configured camera stream running, one goroutine per stream, restarting it with backoff when it fails.
Package talk plays audio from an RTSP client through a camera's speaker.
Package talk plays audio from an RTSP client through a camera's speaker.
Package ts muxes decoded camera frames into an MPEG-TS byte stream.
Package ts muxes decoded camera frames into an MPEG-TS byte stream.
Package webui is the session, auth and rendering plumbing behind the reostream daemon's operator page -- one process, one page, covering both the fleet and the cameras on it.
Package webui is the session, auth and rendering plumbing behind the reostream daemon's operator page -- one process, one page, covering both the fleet and the cameras on it.

Jump to

Keyboard shortcuts

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