Documentation ¶
Index ¶
- Constants
- func ChatMentionKey(user auth.User) notificationmanager.PersistencyKey
- func NavigationDestinationHighlightedForUserKey(destinationID string, user auth.User) notificationmanager.PersistencyKey
- func NavigationDestinationHighlightedPrefix(destinationID string) string
- func NewAnnouncementsUpdatedNotification(counter int) notificationmanager.Notification
- func NewChatMentionNotification(mentionedUser auth.User, messageID snowflake.ID, persistent bool) notificationmanager.Notification
- func NewNavigationDestinationHighlightedForEveryoneNotification(applicationID string, expiry time.Time, destinationID string) notificationmanager.Notification
- func NewNavigationDestinationHighlightedForUserNotification(applicationID string, user auth.User, expiry time.Time, destinationID string) notificationmanager.Notification
- func NewRewardBalanceUpdatedNotification(user auth.User, rewardBalance payment.Amount, diff payment.Amount) notificationmanager.Notification
- func NewToastForUserNotification(applicationID string, user auth.User, message, href string, ...) notificationmanager.Notification
- func NewToastNotification(applicationID, message, href string, duration time.Duration) notificationmanager.Notification
Constants ¶
View Source
const AnnouncementsKey notificationmanager.PersistencyKey = "announcements"
Variables ¶
This section is empty.
Functions ¶
func ChatMentionKey ¶
func ChatMentionKey(user auth.User) notificationmanager.PersistencyKey
func NavigationDestinationHighlightedForUserKey ¶
func NavigationDestinationHighlightedForUserKey(destinationID string, user auth.User) notificationmanager.PersistencyKey
func NewAnnouncementsUpdatedNotification ¶
func NewAnnouncementsUpdatedNotification(counter int) notificationmanager.Notification
func NewChatMentionNotification ¶
func NewChatMentionNotification(mentionedUser auth.User, messageID snowflake.ID, persistent bool) notificationmanager.Notification
func NewNavigationDestinationHighlightedForEveryoneNotification ¶
func NewNavigationDestinationHighlightedForEveryoneNotification(applicationID string, expiry time.Time, destinationID string) notificationmanager.Notification
func NewNavigationDestinationHighlightedForUserNotification ¶
func NewNavigationDestinationHighlightedForUserNotification(applicationID string, user auth.User, expiry time.Time, destinationID string) notificationmanager.Notification
func NewRewardBalanceUpdatedNotification ¶
func NewRewardBalanceUpdatedNotification(user auth.User, rewardBalance payment.Amount, diff payment.Amount) notificationmanager.Notification
func NewToastForUserNotification ¶
func NewToastForUserNotification(applicationID string, user auth.User, message, href string, duration time.Duration) notificationmanager.Notification
func NewToastNotification ¶
func NewToastNotification(applicationID, message, href string, duration time.Duration) notificationmanager.Notification
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.