Module sidejob_config

Utility that converts a given property list into a module that provides constant time access to the various key/value pairs.

Description

Utility that converts a given property list into a module that provides constant time access to the various key/value pairs.

Example: load_config(test, [{limit, 1000}, {num_workers, 4}, {workers, [{test_1, test_2, test_3, test_4}]}]).

creates the module test such that: test:limit(). => 1000 test:num_workers(). => 16 test:workers(). => [{test_1, test_2, test_3, test_4}]}]

Function Index

load_config/2

Function Details

load_config/2

load_config(Resource, Config) -> any()


Generated by EDoc