View Source amoc_config_scenario (amoc v3.3.0)
Summary
Types
-type error() :: {error, error_type(), reason()}.
-type error_type() :: atom().
-type maybe_update_fun() :: update_fun() | fun((_, _) -> any()).
-type maybe_verification_fun() :: verification_fun() | fun((_) -> any()).
-type module_configuration() :: [module_parameter()].
-type module_parameter() :: #module_parameter{name :: name(), mod :: module(), value :: value(), description :: string(), verification_fn :: maybe_verification_fun(), update_fn :: maybe_update_fun() | read_only}.
-type name() :: atom().
-type reason() :: any().
-type value() :: any().
Functions
-spec get_current_configuration() -> {ok, module_configuration_map()}.
-spec get_default_configuration(module()) -> {ok, module_configuration_map()} | error().