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

Struct WebhookHandler

coderd/notifications/dispatch/webhook.go:23–28  ·  view source on GitHub ↗

WebhookHandler dispatches notification messages via an HTTP POST webhook.

Source from the content-addressed store, hash-verified

21
22// WebhookHandler dispatches notification messages via an HTTP POST webhook.
23type WebhookHandler struct {
24 cfg codersdk.NotificationsWebhookConfig
25 log slog.Logger
26
27 cl *http.Client
28}
29
30// WebhookPayload describes the JSON payload to be delivered to the configured webhook endpoint.
31type WebhookPayload struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected