Liking cljdoc? Tell your friends :D

hub.notification.client

This is probably best implemented with Redis and a set.

This is probably best implemented with Redis and a set.
raw docstring

IDclj


Notificationclj


notification-clientclj

(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.
raw docstring

opt-in!clj

(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.
raw docstring

opt-insclj

(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).
raw docstring

opted-in?clj

(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.
raw docstring

RedisSpecclj

raw docstring

update!clj

(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.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close