Documentation
¶
Overview ¶
Package notify provides an interface for notifications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEvent = errors.New("notify: unknown event")
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier interface {
// Close closes the Notifier.
Close() error
// Register registers the named event to the Notifier. The keys and values
// of the opts are dependent on each implementation.
//
// Notifier may use the icon for notifications.
Register(event string, icon Icon, opts map[string]any) error
// Notify notifies the named event by the specified title and body.
Notify(event, title, body string) error
// Sys returns the implementation of the Notifier.
Sys() any
}
Notifier is an interface for notifications.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package freedesktop implements the Desktop Notifications Specification version 1.2.
|
Package freedesktop implements the Desktop Notifications Specification version 1.2. |
|
Package gntp implements the Growl Notification Transport Protocol version 1.0.
|
Package gntp implements the Growl Notification Transport Protocol version 1.0. |
|
internal
|
|
|
Package windows implements the Windows Notifications.
|
Package windows implements the Windows Notifications. |
Click to show internal directories.
Click to hide internal directories.
