Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
keylight-openapi
command
Package main provides a CLI tool to generate the OpenAPI specification for the keylightd API.
|
Package main provides a CLI tool to generate the OpenAPI specification for the keylightd API. |
|
keylightctl
command
|
|
|
keylightd
command
|
|
|
contrib
|
|
|
keylightd-tray
command
|
|
|
internal
|
|
|
events
Package events provides a lightweight in-process event bus for broadcasting state changes to subscribers (e.g., WebSocket hub, future SSE endpoint).
|
Package events provides a lightweight in-process event bus for broadcasting state changes to subscribers (e.g., WebSocket hub, future SSE endpoint). |
|
http/handlers
Package handlers provides typed Huma request/response structs and handler implementations for the keylightd HTTP API.
|
Package handlers provides typed Huma request/response structs and handler implementations for the keylightd HTTP API. |
|
http/mw
Package mw provides middleware and registration helpers for the keylightd HTTP API.
|
Package mw provides middleware and registration helpers for the keylightd HTTP API. |
|
http/routes
Package routes provides shared route registration for the keylightd HTTP API.
|
Package routes provides shared route registration for the keylightd HTTP API. |
|
logging
Package logging provides filter validation and setup helpers for the keylightd structured logging system backed by slog-logfilter.
|
Package logging provides filter validation and setup helpers for the keylightd structured logging system backed by slog-logfilter. |
|
ws
Package ws provides a WebSocket hub for broadcasting real-time events to connected clients.
|
Package ws provides a WebSocket hub for broadcasting real-time events to connected clients. |
|
pkg
|
|
|
keylight
Concurrency Notes (audit): - Read operations (GetDiscoveredLights, GetLights) use RLock and return snapshots (map/slice copies or new structs) to avoid external mutation of internal state.
|
Concurrency Notes (audit): - Read operations (GetDiscoveredLights, GetLights) use RLock and return snapshots (map/slice copies or new structs) to avoid external mutation of internal state. |
Click to show internal directories.
Click to hide internal directories.

