notification

package
v0.0.0-...-d0539ee Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2015 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	LowPriority      = "low"
	NormalPriority   = "normal"
	CriticalPriority = "critical"
)

Variables

View Source
var (
	ErrTitleMsg = errors.New("Notification: A title or message must be specified")
)

Errors

Functions

This section is empty.

Types

type Message

type Message struct {
	Title      string
	Body       string
	Icon       string
	Urgency    string
	ExpireTime int
	Category   string
	Hint       string
	Sound      string
}

func (*Message) PlaySound

func (m *Message) PlaySound() (err error)

func (*Message) Push

func (m *Message) Push() (err error)

type NotificationErr

type NotificationErr struct {
	File   string
	Return string
	Err    error
}

func (*NotificationErr) Error

func (e *NotificationErr) Error() string

Jump to

Keyboard shortcuts

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