uns-framework — Topic Monitor
Subscribes to the entire UNS namespace and caches all topic data in Valkey.
| Language | Go |
| Type | MQTT subscriber |
| Scaffolded with | fnkit go-mqtt |
| Depends on | MQTT broker, Valkey |
What It Does
Monitors the entire UNS by subscribing to v1.0/#. Every message cached in Valkey with current/previous tracking. The foundation — all other functions read from this cache.
Cache Key Layout
| Key | Type | Description |
|---|---|---|
| uns:topics | SET | All discovered topic paths |
| uns:data:* | STRING | Latest payload (JSON) |
| uns:prev:* | STRING | Previous payload (JSON) |
| uns:meta:* | STRING | last_updated, count, first_seen |
Quick Start
cd uns-framework && cp .env.example .env docker compose up -d && docker logs -f uns-framework