notifications

package
v0.0.0-...-e9c30ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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(destinationID string, user auth.User) notificationmanager.PersistencyKey
func NavigationDestinationHighlightedPrefix(destinationID string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL