aboutsummaryrefslogtreecommitdiffstats
path: root/notifier.go
diff options
context:
space:
mode:
authorGabriel Handford2016-05-06 15:20:54 -0700
committerGabriel Handford2016-05-06 15:57:46 -0700
commit12878f6400420fa6c988187c8942799b73c31e6c (patch)
tree4c134f3bbf0ea6ebd4f3b8cdad6bf27ec903da4d /notifier.go
downloadgo-notifier-12878f6400420fa6c988187c8942799b73c31e6c.tar.bz2
Importing
Diffstat (limited to 'notifier.go')
-rw-r--r--notifier.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/notifier.go b/notifier.go
new file mode 100644
index 0000000..cb342e5
--- /dev/null
+++ b/notifier.go
@@ -0,0 +1,19 @@
+// Copyright 2016 Keybase, Inc. All rights reserved. Use of
+// this source code is governed by the included BSD license.
+
+package notifier
+
+// Notification defines a notification
+type Notification struct {
+ Title string
+ Message string
+ ImagePath string
+ ImageURL string
+ BundleID string // For darwin
+ ToastPath string // For windows (Toaster)
+}
+
+// Notifier knows how to deliver a notification
+type Notifier interface {
+ DeliverNotification(notification Notification) error
+}