MCPcopy Create free account

hub / github.com/alexjlockwood/gcm / functions

Functions17 in github.com/alexjlockwood/gcm

↓ 11 callersMethodSendNoRetry
SendNoRetry sends a message to the GCM server without retrying in case of service unavailability. A non-nil error is returned if a non-recoverable err
sender.go:54
↓ 10 callersMethodSend
Send sends a message to the GCM server, retrying in case of service unavailability. A non-nil error is returned if a non-recoverable error occurs (i.e
sender.go:99
↓ 9 callersFunctionstartTestServer
(t *testing.T, responses ...*testResponse)
sender_test.go:16
↓ 5 callersFunctionNewMessage
NewMessage returns a new Message with the specified payload and registration IDs.
message.go:19
↓ 2 callersFunctioncheckMessage
checkMessage returns an error if the message is not well-formed.
sender.go:197
↓ 2 callersFunctioncheckSender
checkSender returns an error if the sender is not well-formed and initializes a zeroed http.Client if one has not been provided.
sender.go:186
↓ 1 callersFunctionmin
min returns the smaller of two integers. For exciting religious wars about why this wasn't included in the "math" package, see this thread: https://gr
sender.go:177
↓ 1 callersFunctionupdateStatus
updateStatus updates the status of the messages sent to devices and returns the number of recoverable errors that could be retried.
sender.go:161
FunctionTestSendInvalidApiKey
(t *testing.T)
sender_test.go:47
FunctionTestSendInvalidMessage
(t *testing.T)
sender_test.go:80
FunctionTestSendNoRetryInvalidApiKey
(t *testing.T)
sender_test.go:38
FunctionTestSendNoRetryInvalidMessage
(t *testing.T)
sender_test.go:56
FunctionTestSendNoRetryNonrecoverableFailure
(t *testing.T)
sender_test.go:114
FunctionTestSendNoRetrySuccess
(t *testing.T)
sender_test.go:104
FunctionTestSendOneRetryFailure
(t *testing.T)
sender_test.go:137
FunctionTestSendOneRetryNonrecoverableFailure
(t *testing.T)
sender_test.go:151
FunctionTestSendOneRetrySuccess
(t *testing.T)
sender_test.go:124