GenDurable.Registry (gen_durable v0.1.0)

Copy Markdown View Source

Resolves {fsm_name, fsm_version} to an FSM module.

Explicit by design (spec §8): old versions finish on their fsm_version, so they must remain registered as their own modules. Started with a :fsms list; each module is indexed by __gd_name__/0 + __gd_version__/0. Reads go through a protected ETS table (no GenServer call on the hot path).

Summary

Functions

Returns a specification to start this module under a supervisor.

Look up the module for {name, version}; raises NotFound if missing.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

fetch!(name, version)

Look up the module for {name, version}; raises NotFound if missing.

start_link(opts)