Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationsConfig ¶
type NotificationsConfig struct {
Ntfy NtfyConfig `yaml:"ntfy"`
System SystemConfig `yaml:"system"`
}
NotificationsConfig represents the structure of the 'notifications' section in grove.yml
func Load ¶
func Load() *NotificationsConfig
Load reads the merged grove configuration and parses the 'notifications' extension.
type NtfyConfig ¶
type NtfyConfig struct {
Enabled bool `yaml:"enabled"`
Topic string `yaml:"topic"`
URL string `yaml:"url"`
}
NtfyConfig holds settings for ntfy.sh notifications.
type SystemConfig ¶
type SystemConfig struct {
// Levels specifies which notification levels should trigger a system notification.
// e.g., ["error", "warning"]
Levels []string `yaml:"levels"`
}
SystemConfig holds settings for native system notifications.
Click to show internal directories.
Click to hide internal directories.