notifications

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

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notification

type Notification struct {
	Title string `json:"title"`
	Body  string `json:"body"`
}

type Notifier

type Notifier interface {
	Notify(topic string, userID string) error
}

func NewNotifier

func NewNotifier(repo repositories.NotifierRepo) Notifier

type Push

type Push struct {
	Notification Notification `json:"notification"`
	Topic        string       `json:"topic"`
}

Jump to

Keyboard shortcuts

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