Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPError ¶
HTTPError will be returned when the HTTP code suggest an error occured when sending notifications.
type NotificationProvider ¶
type NotificationProvider func(msg proto.NotificationPayload, token, identifier string, expiration time.Time) (*http.Response, error)
NotificationProvider defines the necessary parameters for sending a notification.
func NewNotificationProvider ¶
func NewNotificationProvider(pub, key, topic, server string) (NotificationProvider, error)
NewNotificationProvider prepares an Apple APN provider for sending push notifications. Read more about it in the Apple documentation https://goo.gl/ywkRfD
Click to show internal directories.
Click to hide internal directories.