]> git.giacomolli.uk - onehouse/commit
Build typed MQTT publications
authorAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 20:52:01 +0000 (17:52 -0300)
committerAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 21:40:20 +0000 (18:40 -0300)
commitb28ae53ae04c41116acb2beae9d5a2128a187c83
treed95453aea949f11c2d501e17678b5f6a60c23d28
parentb2dda1203fcd01639423fa01454e950c3edf39d2
Build typed MQTT publications

Typed builders and parsers cover every wire operation, including ordered
command batches and expiring hub diagnostics. Publications carry their
delivery rules and command response metadata, so callers need no topic
or envelope construction. Strict closed payloads reject unsupported
fields while event objects keep complete application data.

Issue: 8fa2f25
16 files changed:
doc/mqtt.rst
protocol/address.go
protocol/address_test.go
protocol/batch_payload.go [new file with mode: 0644]
protocol/batch_payload_test.go [new file with mode: 0644]
protocol/builders.go [new file with mode: 0644]
protocol/builders_helper_test.go [new file with mode: 0644]
protocol/builders_test.go [new file with mode: 0644]
protocol/descriptor_payload.go [new file with mode: 0644]
protocol/envelope.go
protocol/envelope_test.go
protocol/hub_status_payload.go [new file with mode: 0644]
protocol/hub_status_payload_test.go [new file with mode: 0644]
protocol/message.go [new file with mode: 0644]
protocol/message_test.go [new file with mode: 0644]
protocol/value_payload.go [new file with mode: 0644]