Documentation
¶
Index ¶
- Variables
- func GetClip(event models.Event) io.Reader
- func GetSnapshot(event models.Event) io.Reader
- func ParseSMTPRecipients(recipientList string) []string
- func SendAlert(events []models.Event)
- func SendAppriseAPI(event models.Event, snapshot io.Reader, provider notifMeta)
- func SendDiscordMessage(event models.Event, snapshot io.Reader, provider notifMeta)
- func SendGotifyPush(event models.Event, provider notifMeta)
- func SendMatrix(event models.Event, snapshot io.Reader, provider notifMeta)
- func SendMattermost(event models.Event, provider notifMeta)
- func SendNtfyPush(event models.Event, snapshot io.Reader, provider notifMeta)
- func SendPushoverMessage(event models.Event, snapshot io.Reader, provider notifMeta)
- func SendSMTP(event models.Event, snapshot io.Reader, provider notifMeta)
- func SendSignalMessage(event models.Event, snapshot io.Reader, provider notifMeta)
- func SendTelegramMessage(event models.Event, snapshot io.Reader, provider notifMeta)
- func SendWebhook(event models.Event, provider notifMeta)
- type AppriseAPIAttachment
- type AppriseAPIPayload
- type MattermostAttachment
- type MattermostPayload
- type SignalPayload
- type WebhookPayload
Constants ¶
This section is empty.
Variables ¶
var TemplateFiles embed.FS
Functions ¶
func GetSnapshot ¶ added in v0.4.0
GetSnapshot downloads a snapshot from Frigate
func ParseSMTPRecipients ¶
ParseSMTPRecipients splits individual email addresses from config file
func SendAppriseAPI ¶ added in v0.4.3
SendAppriseAPI forwards alert messages to Apprise API notification server
func SendDiscordMessage ¶
SendDiscordMessage pushes alert message to Discord via webhook
func SendGotifyPush ¶
SendGotifyPush forwards alert messages to Gotify push notification server
func SendMatrix ¶ added in v0.4.4
SendMatrix pushes alert message to Matrix chat via webhook
func SendMattermost ¶ added in v0.4.1
SendMatterMost pushes alert message to Mattermost via webhook
func SendNtfyPush ¶ added in v0.3.1
SendNtfyPush forwards alert messages to Ntfy server
func SendPushoverMessage ¶ added in v0.2.5
SendPushoverMessage sends alert message through Pushover service
func SendSignalMessage ¶ added in v0.4.1
SendSignalMessage pushes alert message to Signal via webhook
func SendTelegramMessage ¶ added in v0.2.4
SendTelegramMessage sends alert through Telegram to individual users
func SendWebhook ¶ added in v0.3.0
SendWebhook sends alert through HTTP POST to target webhook
Types ¶
type AppriseAPIAttachment ¶ added in v0.4.3
type AppriseAPIPayload ¶ added in v0.4.3
type MattermostAttachment ¶ added in v0.4.1
type MattermostAttachment struct {
ImageURL string `json:"image_url,omitempty"`
}
type MattermostPayload ¶ added in v0.4.1
type MattermostPayload struct {
Text string `json:"text"`
Channel string `json:"channel,omitempty"`
Attachments []MattermostAttachment `json:"attachments"`
Username string `json:"username"`
Priority struct {
Priority string `json:"priority,omitempty"`
} `json:"priority,omitempty"`
}
type SignalPayload ¶ added in v0.4.1
type WebhookPayload ¶ added in v0.4.4
type WebhookPayload struct {
Time string `json:"time"`
ID string `json:"id"`
Camera string `json:"camera"`
Label string `json:"label"`
LicensePlate string `json:"license_plate"`
SubLabel string `json:"sublabel"`
Score string `json:"score"`
Audio string `json:"audio"`
CurrentZones []string `json:"current_zones"`
EnteredZones []string `json:"entered_zones"`
HasClip bool `json:"has_clip"`
HasSnap bool `json:"has_snapshot"`
Links struct {
Camera string `json:"camera"`
Clip string `json:"clip,omitempty"`
Review string `json:"review,omitempty"`
Snap string `json:"snapshot,omitempty"`
} `json:"links"`
}