ExESDB.Commanded.Config (ex_esdb_commanded v0.4.0)
Simple configuration for ExESDB.Commanded.Adapter.
Expects configuration in the standard Commanded format:
config :my_otp_app, MyApp.CommandedApp,
event_store: [
event_type_mapper: MyApp.EventTypeMapper,
store_id: :my_store,
log_level: :info,
adapter: ExESDB.Commanded.Adapter,
stream_prefix: "my_app_"
]
Summary
Functions
Gets event store configuration from the application config.
Gets the event type mapper from configuration.
Gets a specific configuration value with a default.
Gets the log level from configuration.
Gets the serializer module from configuration.
Gets the store ID from configuration.
Gets the stream prefix from configuration.
Validates the event store configuration and warns about missing critical components.
Validates that the event type mapper module exists and has required functions.
Types
@type config() :: Keyword.t()
Functions
Gets event store configuration from the application config.
The otp_app and commanded_app are passed from the adapter's child_spec.
Gets the event type mapper from configuration.
Gets a specific configuration value with a default.
Gets the log level from configuration.
Gets the serializer module from configuration.
Gets the store ID from configuration.
Gets the stream prefix from configuration.
Validates the event store configuration and warns about missing critical components.
@spec validate_event_type_mapper(module()) :: :ok
Validates that the event type mapper module exists and has required functions.