Versions in this module Expand all Collapse all v0 v0.9.1 Apr 10, 2016 v0.9.0 Apr 3, 2016 Changes in this version + const CCSAck + const CCSControl + const CCSNack + const CCSReceipt + var DebugMode = false + var DefaultMaxBackoff = 10 * time.Second + var DefaultMinBackoff = 1 * time.Second + func Close(senderId string) error + func Listen(senderId, apiKey string, h MessageHandler, stop <-chan bool) error + func SendXmpp(senderId, apiKey string, m XmppMessage) (string, int, error) + type CcsMessage struct + Category string + ControlType string + Data Data + Error string + ErrorDescription string + From string + MessageId string + MessageType string + RegistrationId string + type Data map[string]interface + type HttpMessage struct + CollapseKey string + ContentAvailable bool + Data Data + DelayWhileIdle bool + DryRun bool + Notification *Notification + Priority string + RegistrationIds []string + RestrictedPackageName string + TimeToLive uint + To string + type HttpResponse struct + CanonicalIds uint + Error string + Failure uint + MessageId uint + MulticastId int + Results []Result + Success uint + func SendHttp(apiKey string, m HttpMessage) (*HttpResponse, error) + type MessageHandler func(cm CcsMessage) error + type Notification struct + Badge string + Body string + BodyLocArgs string + BodyLocKey string + ClickAction string + Color string + Icon string + Sound string + Tag string + Title string + TitleLocArgs string + TitleLocKey string + type Result struct + Error string + MessageId string + RegistrationId string + type XmppMessage struct + CollapseKey string + ContentAvailable bool + Data Data + DelayWhileIdle bool + DeliveryReceiptRequested bool + DryRun bool + MessageId string + MessageType string + Notification *Notification + Priority string + TimeToLive uint + To string