Documentation
¶
Overview ¶
Package notify provides error constructors for webhook notifications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadWebhook ¶
LoadWebhook wraps a webhook load failure.
Parameters:
- cause: the underlying error from the load operation.
Returns:
- error: "load webhook: <cause>"
func MarshalPayload ¶
MarshalPayload wraps a JSON marshal failure.
Parameters:
- cause: the underlying marshal error.
Returns:
- error: "marshal payload: <cause>"
func SaveWebhook ¶
SaveWebhook wraps a webhook save failure.
Parameters:
- cause: the underlying error from the save operation.
Returns:
- error: "save webhook: <cause>"
func SendNotification ¶
SendNotification wraps a notification send failure.
Parameters:
- cause: the underlying HTTP error.
Returns:
- error: "send test notification: <cause>"
func WebhookEmpty ¶
func WebhookEmpty() error
WebhookEmpty returns an error for blank webhook URL input.
Returns:
- error: "webhook URL cannot be empty"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.