pushnotification

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

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

func NewDispatcher

func NewDispatcher(eventBus *eventbus.Bus, interactionRepo interaction.Repository, taskRepo task.Repository, sender *Sender) *Dispatcher

func (*Dispatcher) Start

func (d *Dispatcher) Start(ctx context.Context)

type NotificationPayload

type NotificationPayload struct {
	Title string `json:"title"`
	Body  string `json:"body"`
	URL   string `json:"url,omitempty"`
	Tag   string `json:"tag,omitempty"`
}

type Sender

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

func NewSender

func NewSender(vapidEnv *config.VAPIDEnv, repo pushsubscription.Repository) *Sender

func (*Sender) SendToAll

func (s *Sender) SendToAll(ctx context.Context, payload *NotificationPayload)

Jump to

Keyboard shortcuts

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