Documentation ¶
Index ¶
Constants ¶
View Source
const ( ACK = "ack" NACK = "nack" CONTROL = "control" RECEIPT = "receipt" UPSTREAM = "" )
View Source
const ( START_STREAM = `` /* 136-byte string literal not displayed */ CLIENT_AUTH = `<auth mechanism="PLAIN" xmlns="urn:ietf:params:xml:ns:xmpp-sasl">%s</auth>` IQ_BIND_REQUEST = `<iq type="set" id="%s"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"></bind></iq>\n` )
View Source
const ( XML_STREAM_NAMESPACE = "http://etherx.jabber.org/streams" XML_STREAM_LOCAL_NAME = "stream" XML_SASL_NAMESPACE = "urn:ietf:params:xml:ns:xmpp-sasl" XML_SASL_SUCCESS = "success" )
View Source
const (
CCS_MESSAGE = `<message id="%s"><gcm xmlns="google:mobile:data">%s</gcm></message>`
)
View Source
const (
TCP = "tcp"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACKMessage ¶
type CCSClient ¶
type CCSClient struct {
// contains filtered or unexported fields
}
func (*CCSClient) Recv ¶
func (this *CCSClient) Recv() (*CCSMessageResponse, error)
type CCSMessageResponse ¶
type CCSMessageResponse struct { MessageType string `json:"message_type"` ControlType string `json:"control_type"` MessageID string `json:"message_id"` From string `json:"from"` Data interface{} `json:"data"` Category string `json:"category"` Error string `json:"error"` ErrorDescription string `json:"error_description"` }
type Config ¶
type Config struct { Host string Port string //GCM API Key Username string //GCM Project Number Password string }
func (Config) FullAddress ¶
func (Config) GetEncodedKey ¶
type ReceiptMessage ¶
Click to show internal directories.
Click to hide internal directories.