blob: daf077dae4d66b3f3008a3e60a61f282569a373e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// 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
// For darwin
Actions []string
Timeout float64
BundleID string
// For windows
ToastPath string // Path to toast.exe
}
// Notifier knows how to deliver a notification
type Notifier interface {
DeliverNotification(notification Notification) error
}
|