Runtime configuration.
Every setting comes from an OS environment variable (twelve-factor
style) and is copied into the erlang_notifier application env by
load/0 at boot. Values already present in the application
env (e.g. set from a sys.config or by a test) win over the
defaults but NOT over an explicitly set environment variable.
.env.example for the documented list.
| amqp_enabled/0 | True when the RabbitMQ consumer should run. |
| get/1 | Read a setting; crashes if it was never loaded nor defaulted. |
| get/2 | Read a setting with an explicit fallback. |
| load/0 | Copy every setting from the OS environment into the app env. |
| token_store_enabled/0 | True when device tokens are persisted in PostgreSQL. |
amqp_enabled() -> boolean()
True when the RabbitMQ consumer should run.
get(Key::atom()) -> term()
Read a setting; crashes if it was never loaded nor defaulted.
get(Key::atom(), Default::term()) -> term()
Read a setting with an explicit fallback.
load() -> ok
Copy every setting from the OS environment into the app env.
token_store_enabled() -> boolean()
True when device tokens are persisted in PostgreSQL.
Generated by EDoc