Documentation
¶
Overview ¶
Package envelope is the JSON shape of every message published on <org_id>.<handle>.broadcast (per WIRE.md §3).
Index ¶
Constants ¶
View Source
const MaxBytes = 65536 // 64 KiB cap on the encoded envelope.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
ID string `json:"id"`
Sender string `json:"sender"`
Payload string `json:"payload"`
CreatedAt time.Time `json:"created_at"`
}
Sender is the source handle the message was published *from* — the broadcaster's current source at publish time. Empty string when the publisher had no current source set (e.g. `ppz send <dest>` from a session that never connected). Distinct from the destination handle, which is encoded only in the NATS subject (per WIRE.md §3).
Click to show internal directories.
Click to hide internal directories.