mem_evoq_sup (mem_evoq v0.1.1)

View Source

Top-level supervisor.

Boots the registry (owns the ETS table mapping StoreId -> store pid) and supervises per-store mem_evoq_store processes started dynamically via mem_evoq:start_store/1.

Summary

Functions

Add a per-store gen_server as a dynamic child.

Stop a per-store gen_server and remove its child spec.

Functions

init(_)

start_link()

start_store(StoreId, Opts)

-spec start_store(atom(), map()) -> {ok, pid()} | {error, term()}.

Add a per-store gen_server as a dynamic child.

stop_store(StoreId)

-spec stop_store(atom()) -> ok | {error, term()}.

Stop a per-store gen_server and remove its child spec.