Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service interface { // Send a notification via Slack NotifySlack(msg *SlackMessage) error // Send a notification via Telegram NotifyTelegram(msg *TelegramMessage) error // Send a notification via webhook NotifyWebhook(msg *WebhookMessage) error }
Service provides methods to send notifications
func GetService ¶
GetService returns an implementation Service from DI container
type SlackMessage ¶
SlackMessage is a content for Slack notification
type TelegramMessage ¶
TelegramMessage is a content for Telegram notification
type WebhookMessage ¶
type WebhookMessage struct { To []string PayloadJSON interface{} }
WebhookMessage is a content for webhook notification
Click to show internal directories.
Click to hide internal directories.