MCPcopy Index your code
hub / github.com/coder/coder / Dispatch

Method Dispatch

coderd/webpush/webpush.go:53–53  ·  view source on GitHub ↗

Dispatch sends a web push notification to all subscriptions for a user. Any notifications that fail to send are silently dropped.

(ctx context.Context, userID uuid.UUID, notification codersdk.WebpushMessage)

Source from the content-addressed store, hash-verified

51 // Dispatch sends a web push notification to all subscriptions
52 // for a user. Any notifications that fail to send are silently dropped.
53 Dispatch(ctx context.Context, userID uuid.UUID, notification codersdk.WebpushMessage) error
54 // Test sends a test web push notificatoin to a subscription to ensure it is valid.
55 Test(ctx context.Context, req codersdk.WebpushSubscription) error
56 // PublicKey returns the VAPID public key for the webpush dispatcher.

Callers 4

TestPushFunction · 0.65
TestSSRFPreventionFunction · 0.65
dispatchPushMethod · 0.65

Implementers 5

testWebpushDispatchercoderd/webpush_test.go
Webpushercoderd/webpush/webpush.go
NoopWebpushercoderd/webpush/webpush.go
recordingWebpushDispatchercoderd/x/chatd/turn_summary_internal_t
mockWebpushDispatchercoderd/x/chatd/chatd_test.go

Calls

no outgoing calls

Tested by 2

TestPushFunction · 0.52
TestSSRFPreventionFunction · 0.52