WalEx.Config (WalEx v4.6.0)

View Source

Configuration

Summary

Types

start_opts()

@type start_opts() :: [
  database: binary(),
  hostname: binary(),
  name: binary(),
  password: binary(),
  port: binary(),
  publication: binary(),
  username: binary(),
  webhook_signing_secret: binary(),
  slot_name: binary(),
  durable_slot: boolean(),
  message_middleware: (term(), term() -> :ok),
  event_relay: keyword(),
  modules: [module()],
  subscriptions: [binary()]
]

Functions

add_config(app_name, key, new_values)

build_module_names(name, modules, subscriptions)

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_configs(app_name)

get_configs(app_name, key)

get_database(app_name)

get_event_modules(app_name)

has_config?(configs, key)

map_subscriptions_to_modules(subscriptions, name)

remove_config(app_name, key, new_value)

replace_config(app_name, key, new_value)

start_link(opts)

@spec start_link(opts :: start_opts()) :: Agent.on_start()

to_module_name(module_name)