z_module_sup (zotonic_core v1.0.0-rc.10)

Supervisor for a site's modules

Link to this section Summary

Link to this section Functions

-spec gc(atom()) -> any().
-spec init(list()) -> {ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}.
Link to this function

start_link(Site)

-spec start_link(atom()) -> {ok, pid()} | {error, term()}.
API for starting the sites dispatcher and manager
Link to this function

start_module(Application, ChildSpec, Site)

-spec start_module(atom(), supervisor:child_spec(), Site :: atom()) ->
                {ok, pid()} | {error, {already_started, pid()}} | {error, term()}.
Link to this function

stop_module(ChildId, Site)

-spec stop_module(supervisor:child_id(), atom()) -> ok | {error, not_found}.