Notified (notified v0.0.2)
This module is the facade for managing notifications with notified
Link to this section Summary
Link to this section Types
Link to this type
message()
Specs
message() :: String.t()
Link to this type
notification()
Specs
notification() :: Notified.Notification.t()
Link to this type
search_term()
Specs
search_term() :: String.t()
Link to this type
subject()
Specs
subject() :: String.t()
Link to this type
tags()
Specs
tags() :: [String.t()]
Link to this section Functions
Link to this function
clear()
Specs
clear() :: :ok | {:error, term()}
Link to this function
count_unseen()
Specs
count_unseen() :: non_neg_integer()
Link to this function
create(subject, message, tags)
Specs
create(subject(), message(), tags()) :: {:ok, notification()} | {:error, Ecto.Changeset.t()}
Link to this function
delete(notification)
Specs
delete(notification()) :: {:ok, notification()} | {:error, Ecto.Changeset.t()}
Link to this function
get!(id)
Specs
get!(integer()) :: notification()
Link to this function
mark_seen(notification)
Specs
mark_seen(notification()) :: {:ok, notification()} | {:error, Ecto.Changeset.t()}
Link to this function
search(search_term, opts)
Specs
search(search_term(), list()) :: [notification()]
Link to this function
search_count(search_term)
Specs
search_count(search_term()) :: non_neg_integer()