webpush

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender interface {

	// Send queues up a notification for delivery to all of an account's Web Push subscriptions.
	Send(ctx context.Context, notif *gtsmodel.Notification, apiNotif *apimodel.Notification) error
}

Sender can send Web Push notifications.

func NewSender

func NewSender(httpClient *httpclient.Client, state *state.State, converter *typeutils.Converter) Sender

NewSender creates a new sender from an HTTP client, DB, and worker pool.

Jump to

Keyboard shortcuts

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