WebhookHandler dispatches notification messages via an HTTP POST webhook.
| 21 | |
| 22 | // WebhookHandler dispatches notification messages via an HTTP POST webhook. |
| 23 | type 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. |
| 31 | type WebhookPayload struct { |
nothing calls this directly
no outgoing calls
no test coverage detected