Documentation
¶
Index ¶
- func BuildDiscordURL(config models.DiscordConfig) (string, error)
- func BuildGenericURL(config models.GenericConfig) (string, error)
- func BuildGotifyURL(config models.GotifyConfig) (string, error)
- func BuildMatrixURL(config models.MatrixConfig) (string, error)
- func BuildNtfyURL(config models.NtfyConfig) (string, error)
- func BuildPushoverURL(config models.PushoverConfig) (string, error)
- func BuildSMTPURL(config models.EmailConfig) (string, error)
- func BuildSignalURL(config models.SignalConfig) (string, error)
- func BuildSlackURL(config models.SlackConfig) (string, error)
- func BuildTelegramURL(config models.TelegramConfig) (string, error)
- func SanitizeForEmail(text string) string
- func SendDiscord(ctx context.Context, config models.DiscordConfig, message string) error
- func SendEmail(ctx context.Context, config models.EmailConfig, subject, htmlBody string) error
- func SendGenericWithTitle(ctx context.Context, config models.GenericConfig, title, message string) error
- func SendGotify(ctx context.Context, config models.GotifyConfig, message string) error
- func SendMatrix(ctx context.Context, config models.MatrixConfig, message string) error
- func SendNtfy(ctx context.Context, config models.NtfyConfig, message string) error
- func SendPushover(ctx context.Context, config models.PushoverConfig, message string) error
- func SendSignal(ctx context.Context, config models.SignalConfig, message string) error
- func SendSlack(ctx context.Context, config models.SlackConfig, message string) error
- func SendTelegram(ctx context.Context, config models.TelegramConfig, message string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDiscordURL ¶
func BuildDiscordURL(config models.DiscordConfig) (string, error)
BuildDiscordURL converts DiscordConfig to Shoutrrr URL format using shoutrrr's Config
func BuildGenericURL ¶
func BuildGenericURL(config models.GenericConfig) (string, error)
BuildGenericURL converts GenericConfig to Shoutrrr URL format for generic webhooks
func BuildGotifyURL ¶
func BuildGotifyURL(config models.GotifyConfig) (string, error)
BuildGotifyURL converts GotifyConfig to Shoutrrr URL format URL example: gotify://host[:port][/path]/token[?query]
func BuildMatrixURL ¶
func BuildMatrixURL(config models.MatrixConfig) (string, error)
BuildMatrixURL converts MatrixConfig to Shoutrrr URL format URL example: matrix://user:password@host[:port]/[?rooms=!roomID1[,roomAlias2]][&disableTLS=yes]
func BuildNtfyURL ¶
func BuildNtfyURL(config models.NtfyConfig) (string, error)
BuildNtfyURL converts NtfyConfig to Shoutrrr URL format URL example: ntfy://[user:password@]host[:port]/topic[?query]
func BuildPushoverURL ¶
func BuildPushoverURL(config models.PushoverConfig) (string, error)
BuildPushoverURL converts PushoverConfig to Shoutrrr URL format. URL example: pushover://:token@user?devices=device1,device2&priority=1&title=Container+Update
func BuildSMTPURL ¶
func BuildSMTPURL(config models.EmailConfig) (string, error)
BuildSMTPURL converts EmailConfig to Shoutrrr URL format URL example: smtp://user:pass@host:port/?fromAddress=...&toAddresses=...&useHTML=yes
func BuildSignalURL ¶
func BuildSignalURL(config models.SignalConfig) (string, error)
BuildSignalURL converts SignalConfig to Shoutrrr URL format using shoutrrr's Config
func BuildSlackURL ¶
func BuildSlackURL(config models.SlackConfig) (string, error)
BuildSlackURL converts SlackConfig to Shoutrrr URL format using shoutrrr's Config
func BuildTelegramURL ¶
func BuildTelegramURL(config models.TelegramConfig) (string, error)
BuildTelegramURL converts TelegramConfig to Shoutrrr URL format using shoutrrr's Config
func SanitizeForEmail ¶
SanitizeForEmail sanitizes text for safe use in email subjects
func SendDiscord ¶
SendDiscord sends a message via Shoutrrr Discord using proper service configuration
func SendGenericWithTitle ¶
func SendGenericWithTitle(ctx context.Context, config models.GenericConfig, title, message string) error
SendGenericWithTitle sends a message with title via Shoutrrr Generic webhook
func SendGotify ¶
SendGotify sends a message via Shoutrrr Gotify using proper service configuration
func SendMatrix ¶
SendMatrix sends a message via Shoutrrr Matrix using proper service configuration
func SendPushover ¶
SendPushover sends a message via Shoutrrr Pushover using proper service configuration.
func SendSignal ¶
SendSignal sends a message via Shoutrrr Signal using proper service configuration
func SendTelegram ¶
SendTelegram sends a message via Shoutrrr Telegram using proper service configuration
Types ¶
This section is empty.