Documentation
¶
Overview ¶
Package webhook provides a standalone HTTP POST client for sending notifications to a configured webhook URL. It handles Slack auto-detection and formatting so that callers (CLI, IPC, MCP) share a single code path.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatSlackText ¶
FormatSlackText produces a human-readable Slack mrkdwn message from a payload.
func IsSlackWebhook ¶
IsSlackWebhook returns true if the URL is a Slack incoming webhook.
func PostNotification ¶
PostNotification sends a single notification to the webhook URL. It auto-detects Slack webhooks and formats accordingly. Returns an error if the POST fails or the server returns a non-2xx status.
Types ¶
Click to show internal directories.
Click to hide internal directories.