apple

package
v0.0.0-...-8fbe7d1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertBytes

func CertBytes(bytes []byte, password string) (tls.Certificate, error)

CertBytes retuns a new certificate using a bytes

func CertFile

func CertFile(path, password string) (tls.Certificate, error)

CertFile retuns a new certificate using a file

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a FCM client

func New

func New(cert tls.Certificate, production bool) *Client

New creates a new APNS2 Client

func (*Client) Send

func (c *Client) Send(m *apns2.Notification) (string, int, error)

Send makes a request to APNS and returns the message ID

Jump to

Keyboard shortcuts

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