Skip to main content

Module message_flow

Module message_flow 

Source
Expand description

“A sent B a message at T”: the message-flow event and the short list of recent ones, for the message pulses of the Atlas agent map.

It carries ids and times only: the message id, the two agent ids, the host of each end when this srv knows it, how the message travelled and what happened to it here. There is no field for the text, the subject, a file name or a size, so none can leak through it. Each srv reports what it handled: a send to another computer shows on both srvs (the sender’s as lan or queued, the receiver’s as delivered), and a reader joins the two by msg_id.

The recent list lives in memory only (RECENT_MAX entries, newest last) and is read with GET /api/v1/message-flow.

Structs§

MessageFlowEnd
One end of a message: the agent’s id (its slug) and the host it runs on, when this srv knows it.
MessageFlowEvent
The message-flow event’s payload (mps_events::MessageFlow).
Seen
What a call site knows of a message: ids and the two outcomes, never its content.

Enums§

MessageFlowOutcome
What became of the message here.
MessageFlowVia
How the message travelled to or from this srv.

Constants§

RECENT_MAX
How many recent messages are kept.

Functions§

install
Start publishing on broker for the rest of the process. The first call wins.
note
Records that seen happened: published as the message-flow event, and kept in the recent list. Does nothing before install.
recent
The recent messages, oldest first.