z_module_sup (zotonic_core v1.0.0-rc.17)

Supervisor for a site's modules

Summary

Functions

gc(Site)

-spec gc(atom()) -> any().

init(_)

-spec init(list()) -> {ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}.

start_link(Site)

-spec start_link(atom()) -> gen_server:start_ret().

API for starting the sites dispatcher and manager

start_module(Application, ChildSpec, Site)

-spec start_module(atom(), supervisor:child_spec(), Site :: atom()) ->
                      supervisor:startchild_ret() | {error, term()}.

stop_module(ChildId, Site)

-spec stop_module(ChildId, Site) -> ok | {error, not_found} when ChildId :: term(), Site :: atom().