Module notifier_config

Runtime configuration.

Description

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.

See .env.example for the documented list.

Function Index

amqp_enabled/0True when the RabbitMQ consumer should run.
get/1Read a setting; crashes if it was never loaded nor defaulted.
get/2Read a setting with an explicit fallback.
load/0Copy every setting from the OS environment into the app env.
token_store_enabled/0True when device tokens are persisted in PostgreSQL.

Function Details

amqp_enabled/0

amqp_enabled() -> boolean()

True when the RabbitMQ consumer should run.

get/1

get(Key::atom()) -> term()

Read a setting; crashes if it was never loaded nor defaulted.

get/2

get(Key::atom(), Default::term()) -> term()

Read a setting with an explicit fallback.

load/0

load() -> ok

Copy every setting from the OS environment into the app env.

token_store_enabled/0

token_store_enabled() -> boolean()

True when device tokens are persisted in PostgreSQL.


Generated by EDoc