notify

package
v0.0.0-...-f772fb1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

+build darwin,!cgo

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
}

type OSXNotifier

type OSXNotifier struct{}

func NewOSXNotifier

func NewOSXNotifier() *OSXNotifier

func (*OSXNotifier) NotifyFailed

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

func (*OSXNotifier) NotifyFixed

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

func (*OSXNotifier) NotifySucceeded

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

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