Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotifyError ¶
func NotifyError(systemError error)
NotifyError sends an error notification through the configured notification system. It logs the error locally and sends a notification via Slack (if configured).
Parameters: - systemError: The error to notify.
This function runs the notification process asynchronously using a goroutine to avoid blocking.
func SlackNotification ¶
func SlackNotification(err error)
SlackNotification sends an error message to a Slack webhook. It formats the error details and the current time into a Slack message payload.
Parameters: - err: The error to be reported via Slack.
The function retrieves configuration for the Slack webhook URL, formats the error, and sends it as a JSON payload to the Slack webhook.
Types ¶
This section is empty.