notification

package
v0.1.3-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendSlackNotification

func SendSlackNotification(params SlackNotificationParams)

SlackNotification is a rough Go translation of your TypeScript function.

Types

type SlackNotificationParams

type SlackNotificationParams struct {
	Title      string
	Message    string
	Channel    string
	WebhookUrl string
}

SlackNotificationParams holds the incoming arguments.

type SlackPayload

type SlackPayload struct {
	Channel string `json:"channel"`
	Text    string `json:"text"`
}

SlackPayload is the body structure we send to Slack.

Jump to

Keyboard shortcuts

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