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" jsonschema:"description=ntfy.sh push notification settings" jsonschema_extras:"x-layer=global,x-priority=70"`
System SystemConfig `yaml:"system" jsonschema:"description=Native system notification settings" jsonschema_extras:"x-layer=global,x-priority=71"`
}
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 `` /* 153-byte string literal not displayed */
Topic string `` /* 140-byte string literal not displayed */
URL string `` /* 144-byte string literal not displayed */
}
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 `` /* 141-byte string literal not displayed */
}
SystemConfig holds settings for native system notifications.
Click to show internal directories.
Click to hide internal directories.