NervesGate.ProjectionServer (nerves_gate v0.1.0)

Copy Markdown

One device-owned UI read model, not a command coordinator.

Subscribe is a serialized call: the caller is registered before receiving the snapshot. Later operations come directly from this same PID, in order. Clients monitor it and subscribe afresh after a restart or a distribution disconnect. Property payloads are only invalidation hints, never reducer operations.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

snapshot(server \\ __MODULE__)

start_link(opts)

subscribe(server \\ __MODULE__)