githubnotifier

package
v0.0.0-...-8a35ed2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2015 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notification

type Notification struct {
	Message      string //required
	Title        string //optional
	Subtitle     string //optional
	Sound        Sound  //optional
	Link         string //optional
	Sender       string //optional
	Group        string //optional
	AppIcon      string //optional
	ContentImage string //optional
}

Notification represtens the notification structure

func NewNotification

func NewNotification(message string) *Notification

NewNotification return a Notification for a message string

func (*Notification) Push

func (n *Notification) Push() error

Push displays the notification

type Sound

type Sound string

Sound to play with a notification

const (
	Default Sound = "'default'"
	Basso   Sound = "Basso"
	Blow    Sound = "Blow"
	Bottle  Sound = "Bottle"
	Frog    Sound = "Frog"
	Funk    Sound = "Funk"
	Glass   Sound = "Glass"
	Hero    Sound = "Hero"
	Morse   Sound = "Morse"
	Ping    Sound = "Ping"
	Pop     Sound = "Pop"
	Purr    Sound = "Purr"
	Sosumi  Sound = "Sosumi"
	Tink    Sound = "Tink"
)

Default Sound = "'default'" Basso Sound = "Basso" Blow Sound = "Blow" Bottle Sound = "Bottle" Frog Sound = "Frog" Funk Sound = "Funk" Glass Sound = "Glass" Hero Sound = "Hero" Morse Sound = "Morse" Ping Sound = "Ping" Pop Sound = "Pop" Purr Sound = "Purr" Sosumi Sound = "Sosumi" Tink Sound = "Tink"

Jump to

Keyboard shortcuts

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