push

package
v0.0.0-...-4c3f66c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendApns2Notification

func SendApns2Notification(ctx context.Context, cert tls.Certificate, deviceTokens []string, payload []byte)

SendApns2Notification send apns2 notification.

func SendFcmNotification

func SendFcmNotification(ctx context.Context, c *http.Client, key string, subs []*FcmSubscription, payload []byte)

SendFcmNotification push fcm notification to user.

Types

type FcmSubscription

type FcmSubscription struct {
	Endpoint string
	Key      string
	Auth     string
}

FcmSubscription is fcm subscription.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL