diff options
Diffstat (limited to 'notifier.go')
| -rw-r--r-- | notifier.go | 19 |
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 +} |
