This is probably best implemented with Redis and a set.
This is probably best implemented with Redis and a set.
(notification-client)(notification-client spec)Inputs: ([] [spec :- RedisSpec]) Returns: Lifecycle
Client for the notification service.
Inputs: ([] [spec :- RedisSpec]) Returns: Lifecycle Client for the notification service.
(opt-in! id choices)Inputs: [id :- ID choices :- [Notification]] Returns: {Notification s/Bool}
Takes in a user and a sequence of choices and records them all as
true, replacing others. Returns the total map of notification
opt-in settings for the user.
Inputs: [id :- ID choices :- [Notification]]
Returns: {Notification s/Bool}
Takes in a user and a sequence of choices and records them all as
`true`, replacing others. Returns the total map of notification
opt-in settings for the user.(opt-ins id)Inputs: [id :- ID] Returns: {Notification s/Bool}
Returns the total map of notification opt-in settings for the user (or an error if the user doesn't exist).
Inputs: [id :- ID]
Returns: {Notification s/Bool}
Returns the total map of notification opt-in settings for the
user (or an error if the user doesn't exist).(opted-in? id notification)Inputs: [id :- ID notification :- Notification] Returns: s/Bool
Returns true if the user opted in for that particular setting, false otherwise.
Inputs: [id :- ID notification :- Notification] Returns: s/Bool Returns true if the user opted in for that particular setting, false otherwise.
(update! id m)Inputs: [id :- ID m :- {Notification s/Bool}] Returns: {Notification s/Bool}
Updates the supplied notification values. Returns the total map of notification opt-in settings for the user.
Inputs: [id :- ID m :- {Notification s/Bool}]
Returns: {Notification s/Bool}
Updates the supplied notification values. Returns the total map of
notification opt-in settings for the user.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |