Skip to main content

Module action_record

Module action_record 

Source
Expand description

The record of what each connection did: one line in the audit log for every call of a state-changing websocket RPC, whether it was done or refused, saying who made it (super::actor), what it acted on, and how it went.

It is made in one place, the engine’s dispatch, so a handler cannot forget it and a new command is recorded until someone decides it is not (super::action_commands, with a test that every registered command is decided). It names the actor, the command, the agent or pane it targets and the identifier it acts on; it never holds a request’s contents.

Structs§

ActionRecord
One recorded call.
Target
What a call acted on, read from the request’s identifying fields only.

Functions§

after_call
Records a finished call of command, if it is one that changes state.
outcome_of_response
How a call went, from what the handler answered: a command that answers ok: false did not do what was asked.
target_of
What data (a request’s top-level fields) names.