Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendNotificationToUser ¶
func SendNotificationToUser(userID uuid.UUID, data NotificationData, notification *messaging.Notification)
Types ¶
type NotificationBaseData ¶
type NotificationBaseData struct { Type string `json:"type"` Title string `json:"title"` Body string `json:"body"` }
func (NotificationBaseData) GetType ¶
func (n NotificationBaseData) GetType() string
func (NotificationBaseData) ToMap ¶
func (n NotificationBaseData) ToMap() map[string]string
type NotificationData ¶
type UserNotification ¶
type UserNotification struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.