notifier

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupported = errors.New("notification service: unsupported operation system: " + runtime.GOOS)

Functions

This section is empty.

Types

type Notifier

type Notifier interface {
	// Notify send a desktop notification
	Notify(username, game, id string) error

	// Close stops the current notifier service (closes the underlying web server)
	Close() error
}

Notifier service

func New

func New(title string) (Notifier, <-chan string)

New creates a new notifier service and output channel for notification callback events

Jump to

Keyboard shortcuts

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