config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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