types

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationFormData

type NotificationFormData struct {
	NotificationService *struct {
		ID                      uint
		Name                    string
		Description             string
		Type                    string
		IsEnabled               bool
		EventTriggers           []string
		RetryPolicy             string
		WebhookURL              string
		Method                  string
		Headers                 string
		PayloadTemplate         string
		SecretKey               string
		PushbulletAPIKey        string
		PushbulletDeviceID      string
		PushbulletTitleTemplate string
		PushbulletBodyTemplate  string
		NtfyServer              string
		NtfyTopic               string
		NtfyPriority            string
		NtfyUsername            string
		NtfyPassword            string
		NtfyTitleTemplate       string
		NtfyMessageTemplate     string
		GotifyURL               string
		GotifyToken             string
		GotifyPriority          string
		GotifyTitleTemplate     string
		GotifyMessageTemplate   string
		PushoverAPIToken        string
		PushoverUserKey         string
		PushoverDevice          string
		PushoverPriority        string
		PushoverSound           string
		PushoverTitleTemplate   string
		PushoverMessageTemplate string
	}
	IsNew          bool
	SuccessMessage string
	ErrorMessage   string
}

NotificationFormData defines the data needed for the notification add/edit form TODO: This will be moved from notification_form.templ later

type NotificationServiceData

type NotificationServiceData struct {
	ID              uint
	Name            string
	Type            string
	IsEnabled       bool
	Config          map[string]string // Keep for now, might refine later
	Description     string
	EventTriggers   []string
	PayloadTemplate string
	SecretKey       string
	RetryPolicy     string
	SuccessCount    int
	FailureCount    int
}

NotificationServiceData defines the data for a single service in the list

type SettingsNotificationsData

type SettingsNotificationsData struct {
	NotificationServices []NotificationServiceData
	SuccessMessage       string
	ErrorMessage         string
}

SettingsNotificationsData defines the data needed for the notifications list page

Jump to

Keyboard shortcuts

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