notifier

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseSMTPRecipients

func ParseSMTPRecipients() []string

ParseSMTPRecipients splits individual email addresses from config file

func SendAlert

func SendAlert(message, snapshotURL string, snapshot io.Reader, eventid string)

SendAlert forwards alert information to all enabled alerting methods

func SendDiscordMessage

func SendDiscordMessage(message string, snapshot io.Reader, eventid string)

SendDiscordMessage pushes alert message to Discord via webhook

func SendGotifyPush

func SendGotifyPush(message, snapshotURL string, eventid string)

SendGotifyPush forwards alert messages to Gotify push notification server

func SendPushoverMessage added in v0.2.6

func SendPushoverMessage(message string, snapshot io.Reader, eventid string)

SendPushoverMessage sends alert message through Pushover service

func SendSMTP

func SendSMTP(message string, snapshot io.Reader, eventid string)

SendSMTP forwards alert data via email

func SendTelegramMessage added in v0.2.6

func SendTelegramMessage(message string, snapshot io.Reader, eventid string)

SendTelegramMessage sends alert through Telegram to individual users

Types

This section is empty.

Jump to

Keyboard shortcuts

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