notifications

package
v0.0.0-...-9bd9899 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

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) Merge

func (n NotificationBaseData) Merge(a map[string]string, b map[string]string) map[string]string

func (NotificationBaseData) ToMap

func (n NotificationBaseData) ToMap() map[string]string

type NotificationData

type NotificationData interface {
	ToMap() map[string]string
	GetType() string
}

type UserNotification

type UserNotification struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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