Categorygithub.com/google/go-gcm
modulepackage
0.0.0-20170214170421-f387343038b1
Repository: https://github.com/google/go-gcm.git
Documentation: pkg.go.dev

# README

Project status

status: inactive

This project is no longer actively maintained, and remains here as an archive of this work.

For a replacement, check out this actively maintained fork of the library.

GCM Library for Go

Provides the following functionality for Google Cloud Messaging:

  1. Sending messages.
  2. Listening to receiving messages.

Documentation: http://godoc.org/github.com/google/go-gcm

Installation

$ go get github.com/google/go-gcm

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 GCM waiting for messages, calling the handler for CCS message that can be of interest to the listener: upstream messages, delivery receipt notifications, errors.
Send a message using the HTTP GCM connection server.
SendXmpp sends a message using the XMPP GCM 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.
A GCM Http message.
HttpResponse is the GCM connection server response to an HTTP downstream message request.
The notification payload of a GCM message.
Result represents the status of a processed Http message.
A GCM Xmpp message.

# Type aliases

The data payload of a GCM message.
MessageHandler is the type for a function that handles a CCS message.