View Source amoc_scenario behaviour (amoc v3.0.0-rc2)
Summary
Types
-type state() :: any().
-type user_id() :: pos_integer().
Callbacks
Functions
-spec init(amoc:scenario()) -> {ok, state()} | {error, Reason :: term()}.
-spec start(amoc:scenario(), user_id(), state()) -> any().
-spec terminate(amoc:scenario(), state()) -> {ok, any()} | {error, Reason :: term()}.