Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alexjlockwood/gcm
/ functions
Functions
17 in github.com/alexjlockwood/gcm
⨍
Functions
17
◇
Types & classes
5
↓ 11 callers
Method
SendNoRetry
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 callers
Method
Send
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 callers
Function
startTestServer
(t *testing.T, responses ...*testResponse)
sender_test.go:16
↓ 5 callers
Function
NewMessage
NewMessage returns a new Message with the specified payload and registration IDs.
message.go:19
↓ 2 callers
Function
checkMessage
checkMessage returns an error if the message is not well-formed.
sender.go:197
↓ 2 callers
Function
checkSender
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 callers
Function
min
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 callers
Function
updateStatus
updateStatus updates the status of the messages sent to devices and returns the number of recoverable errors that could be retried.
sender.go:161
Function
TestSendInvalidApiKey
(t *testing.T)
sender_test.go:47
Function
TestSendInvalidMessage
(t *testing.T)
sender_test.go:80
Function
TestSendNoRetryInvalidApiKey
(t *testing.T)
sender_test.go:38
Function
TestSendNoRetryInvalidMessage
(t *testing.T)
sender_test.go:56
Function
TestSendNoRetryNonrecoverableFailure
(t *testing.T)
sender_test.go:114
Function
TestSendNoRetrySuccess
(t *testing.T)
sender_test.go:104
Function
TestSendOneRetryFailure
(t *testing.T)
sender_test.go:137
Function
TestSendOneRetryNonrecoverableFailure
(t *testing.T)
sender_test.go:151
Function
TestSendOneRetrySuccess
(t *testing.T)
sender_test.go:124