notify

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) (bool, error)

func InstallGrowlIcons

func InstallGrowlIcons()

Types

type GNTPNotifier

type GNTPNotifier struct {
	*gntp.Client
}

func NewGNTPNotifier

func NewGNTPNotifier(server string, appName string) *GNTPNotifier

func (*GNTPNotifier) NotifyFailed

func (n *GNTPNotifier) NotifyFailed(title, subtitle string) error

func (*GNTPNotifier) NotifyFixed

func (n *GNTPNotifier) NotifyFixed(title, subtitle string) error

func (*GNTPNotifier) NotifySucceeded

func (n *GNTPNotifier) NotifySucceeded(title, subtitle string) error

type Notifier

type Notifier interface {
	NotifySucceeded(text, subtitle string) error
	NotifyFailed(text, subtitle string) error
	NotifyFixed(text, subtitle string) error
}

func NewOSXNotifier

func NewOSXNotifier() Notifier

type TextNotifier

type TextNotifier struct {
}

func NewTextNotifier

func NewTextNotifier() *TextNotifier

func (*TextNotifier) NotifyFailed

func (n *TextNotifier) NotifyFailed(title string, subtitle string) error

func (*TextNotifier) NotifyFixed

func (n *TextNotifier) NotifyFixed(title string, subtitle string) error

func (*TextNotifier) NotifySucceeded

func (n *TextNotifier) NotifySucceeded(title string, subtitle string) error

Jump to

Keyboard shortcuts

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