notify

package
v0.0.0-...-8e0935f Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

func Alert(message string)

Alert sends a notification to an alert channel

func Info

func Info(message string)

Info sends a notification to an info channel

Types

type DiscordRequestBody

type DiscordRequestBody struct {
	Content string `json:"content"`
}

type SendSlackNotificationInput

type SendSlackNotificationInput struct {
	WebhookURL string
	Message    string
	Channel    string
	Username   string
	IconEmoji  string
}

SendSlackNotificationInput ...

type SlackRequestBody

type SlackRequestBody struct {
	Text      string `json:"text"`
	Channel   string `json:"channel"`
	Username  string `json:"username"`
	IconEmoji string `json:"icon_emoji"`
}

SlackRequestBody ...

Jump to

Keyboard shortcuts

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