ravenx v0.1.0 Ravenx.Notification
Base module for notifications implemented using Ravenx strategies.
Summary
Functions
Function used to send a notification asynchronously using a list with the configuration of the notification
Function used to send a notification synchronously using a list with the configuration of the notification
Macros
Macro to inject notification features in application’s modules
Functions
Function used to send a notification asynchronously using a list with the configuration of the notification.
The list should have this objects:
- Strategy atom: defining which strategy to use
- Payload map: including the payload data of the notification.
- Options map (optional): the special configuration of the notification
It will respond with a tuple, indicating if everything is :ok
or there was
an :error
.
Function used to send a notification synchronously using a list with the configuration of the notification.
The list should have this objects:
- Strategy atom: defining which strategy to use
- Payload map: including the payload data of the notification.
- Options map (optional): the special configuration of the notification
It will respond with a tuple, indicating if everything was :ok
or there was
an :error
.