notify

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package notify provides error constructors for webhook notifications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadWebhook

func LoadWebhook(cause error) error

LoadWebhook wraps a webhook load failure.

Parameters:

  • cause: the underlying error from the load operation.

Returns:

  • error: "load webhook: <cause>"

func MarshalPayload

func MarshalPayload(cause error) error

MarshalPayload wraps a JSON marshal failure.

Parameters:

  • cause: the underlying marshal error.

Returns:

  • error: "marshal payload: <cause>"

func SaveWebhook

func SaveWebhook(cause error) error

SaveWebhook wraps a webhook save failure.

Parameters:

  • cause: the underlying error from the save operation.

Returns:

  • error: "save webhook: <cause>"

func SendNotification

func SendNotification(cause error) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL