Documentation
¶
Index ¶
Constants ¶
View Source
const ( // EnvVAPIDPublicKey overrides the stored VAPID public key. EnvVAPIDPublicKey = "CREDIMI_WEB_PUSH_VAPID_PUBLIC_KEY" // EnvVAPIDPrivateKey overrides the stored VAPID private key. EnvVAPIDPrivateKey = "CREDIMI_WEB_PUSH_VAPID_PRIVATE_KEY" )
Variables ¶
This section is empty.
Functions ¶
func GetVAPIDKeyPair ¶
GetVAPIDKeyPair returns the Web Push VAPID key pair, generating and persisting a new one on first use. When both environment variables are set they take precedence over the stored key pair.
func NotifyPipelineRunCompletion ¶
func NotifyPipelineRunCompletion( ctx context.Context, app core.App, req CompletionRequest, ) (int, error)
NotifyPipelineRunCompletion sends a Web Push notification about a finished pipeline run to every push subscription of the organization members. Per-subscription failures are collected into the returned error without aborting the remaining sends. Dead subscriptions (HTTP 404/410) are pruned.
Types ¶
Click to show internal directories.
Click to hide internal directories.