View Source amoc_scenario behaviour (amoc v3.0.0-rc1)
Link to this section Summary
Link to this section Types
-type sourcecode() :: binary().
-type state() :: any().
-type user_id() :: pos_integer().
Link to this section Callbacks
Link to this section Functions
-spec does_scenario_exist(module()) -> boolean().
-spec init([]) -> {ok, state()}.
-spec install_module(module(), sourcecode()) -> ok | {error, [Errors :: string()], [Warnings :: string()]}.
-spec list_configurable_modules() -> [module()].
-spec list_scenario_modules() -> [module()].
-spec list_uploaded_modules() -> [{module(), sourcecode()}].
-spec remove_module(module()) -> ok | {error, [Errors :: string()], [Warnings :: string()]}.
-spec start_link() -> {ok, pid()} | ignore | {error, term()}.