pushsend

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 33 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package pushsend holds backd's built-in push senders: FCM (HTTP v1), APNs (HTTP/2, token authentication) and Web Push (VAPID, RFC 8291). Each answers one result per device for a delivery unit; the worker's job around them (limits, retries, pruning) is elsewhere.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Senders

func Senders(cfg Config) map[string]push.Sender

Senders returns the built-in senders by provider name.

Types

type Config

type Config struct {
	// Proxy is the egress proxy URL (EXECUTOR_PROXY) and EgressKey the key that signs the
	// token each unit presents to it. Without a proxy the senders dial the providers directly,
	// and only public addresses.
	Proxy     string
	EgressKey []byte
	Now       func() time.Time

	// Test hooks: the providers' addresses, and the roots that vouch for them.
	FCMBase   string // https://fcm.googleapis.com
	OAuthURL  string // the service account's token_uri
	APNsBase  string // https://api.push.apple.com
	APNsSand  string // https://api.sandbox.push.apple.com
	TLS       *tls.Config
	AllowAddr bool // dial private addresses directly (tests)
}

Config says how the senders reach the providers.

Jump to

Keyboard shortcuts

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