Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PushNotification ¶
type PushNotification struct {
// contains filtered or unexported fields
}
func NewPushNotification ¶
func NewPushNotification(awsAccessKey string, awsSecretKey string, region string) *PushNotification
Create a push notification manager
func (*PushNotification) Register ¶
func (this *PushNotification) Register(token string, applicationARN string, userData string) (string, error)
Register registers the endpoint into Amazon SNS
func (*PushNotification) Send ¶
func (this *PushNotification) Send(arn string, data *Push) error
Sends a message to a particular endpoint from Amazon SNS
func (*PushNotification) Unregister ¶
func (this *PushNotification) Unregister(arn string) error
Removes an endpoint from Amazon SNS
Click to show internal directories.
Click to hide internal directories.