notification

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct {
	// contains filtered or unexported fields
}

Notifier sends desktop notifications.

func NewNotifier

func NewNotifier(enabled, showPreview bool) *Notifier

NewNotifier creates a new notification dispatcher.

func (*Notifier) Notify

func (n *Notifier) Notify(title, body string)

Notify sends a desktop notification.

type SoundPlayer

type SoundPlayer struct {
	// contains filtered or unexported fields
}

SoundPlayer plays notification sounds.

func NewSoundPlayer

func NewSoundPlayer(enabled bool) *SoundPlayer

NewSoundPlayer creates a new sound player.

func (*SoundPlayer) Play

func (s *SoundPlayer) Play()

Play plays the notification sound.

Jump to

Keyboard shortcuts

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