2017-10-09 16:21:56 +00:00
|
|
|
package common
|
|
|
|
|
2017-10-23 15:46:51 +00:00
|
|
|
import "github.com/NaySoftware/go-fcm"
|
|
|
|
|
2017-10-11 13:51:43 +00:00
|
|
|
// Notifier manages Push Notifications.
|
|
|
|
type Notifier interface {
|
2017-10-23 15:46:51 +00:00
|
|
|
Send(body string, payload fcm.NotificationPayload, tokens ...string) error
|
2017-10-09 16:21:56 +00:00
|
|
|
}
|
2017-10-12 14:31:39 +00:00
|
|
|
|
2017-10-18 20:17:40 +00:00
|
|
|
// NotificationConstructor returns constructor of configured instance Notifier interface.
|
|
|
|
type NotificationConstructor func() Notifier
|