# README
FCM Library for Go
Provides the following functionality for Firebase Cloud Messaging:
- Sending messages.
- Listening to receiving messages.
Documentation: http://godoc.org/github.com/mcilloni/go-fcm
Installation
$ go get github.com/mcilloni/go-fcm
Status
This library is in Alpha. We will make an effort to support the library, but we reserve the right to make incompatible changes when necessary.
Feedback
Please read CONTRIBUTING and raise issues here in Github.
# Packages
No description provided by the author
# Functions
Listen blocks and connects to FCM waiting for messages, calling the handler for CCS message that can be of interest to the listener: upstream messages, delivery receipt notifications, errors.
NewClient returns an fcm client.
SendXmpp sends a message using the XMPP FCM connection server.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
DebugMode determines whether to have verbose logging.
No description provided by the author
Default Min and Max delay for backoff.
# Structs
CcsMessage is an Xmpp message sent from CCS.
No description provided by the author
A FCM Http message.
HttpResponse is the FCM connection server response to an HTTP downstream message request.
The notification payload of a FCM message.
Result represents the status of a processed Http message.
A FCM Xmpp message.
# Type aliases
The data payload of a FCM message.
MessageHandler is the type for a function that handles a CCS message.