2020-07-22 07:41:40 +00:00
|
|
|
package pushnotificationserver
|
2020-07-02 08:08:19 +00:00
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
var ErrInvalidPushNotificationRegistrationVersion = errors.New("invalid version")
|
|
|
|
var ErrEmptyPushNotificationRegistrationPayload = errors.New("empty payload")
|
|
|
|
var ErrMalformedPushNotificationRegistrationInstallationID = errors.New("invalid installationID")
|
|
|
|
var ErrEmptyPushNotificationRegistrationPublicKey = errors.New("no public key")
|
|
|
|
var ErrCouldNotUnmarshalPushNotificationRegistration = errors.New("could not unmarshal preferences")
|
|
|
|
var ErrMalformedPushNotificationRegistrationDeviceToken = errors.New("invalid device token")
|
2020-07-13 08:53:13 +00:00
|
|
|
var ErrMalformedPushNotificationRegistrationGrant = errors.New("invalid grant")
|
2020-07-02 14:19:21 +00:00
|
|
|
var ErrMalformedPushNotificationRegistrationAccessToken = errors.New("invalid access token")
|
|
|
|
var ErrUnknownPushNotificationRegistrationTokenType = errors.New("invalid token type")
|