MCPcopy Create free account

hub / github.com/NaySoftware/go-fcm / functions

Functions57 in github.com/NaySoftware/go-fcm

↓ 6 callersMethodapiKeyHeader
apiKeyHeader generates the value of the Authorization key
fcm.go:152
↓ 5 callersFunctionNewFcmClient
NewFcmClient init and create fcm client
fcm.go:93
↓ 5 callersMethodSend
Send to fcm
fcm.go:201
↓ 5 callersFunctionchgUrl
(ts *httptest.Server)
fcm_test.go:162
↓ 4 callersFunctionextractTopicName
extractTopicName extract topic name for valid topic name input
instanceid.go:354
↓ 4 callersFunctionparseGetInfo
parseGetInfo parses response to InstanceIdInfoResponse
instanceid.go:142
↓ 3 callersMethodToByte
ToByte converts ApnsBatchRequest to a byte
instanceid.go:423
↓ 2 callersMethodNewFcmMsgTo
NewFcmMsgTo sets the targeted token/topic and the data payload
fcm.go:109
↓ 2 callersMethodNewFcmTopicMsg
NewFcmTopicMsg sets the targeted token/topic and the data payload
fcm.go:101
↓ 2 callersMethodSetMsgData
SetMsgData sets data payload
fcm.go:117
↓ 2 callersFunctiongenerateBatchRequest
generateBatchRequest based on tokens and topic
instanceid.go:343
↓ 2 callersFunctiongenerateBatchResponse
generateBatchResponse converts a byte response to BatchResponse
instanceid.go:367
↓ 2 callersFunctiongenerateGetInfoUrl
generateGetInfoUrl generate based on with details and the instance token
instanceid.go:176
↓ 2 callersFunctiongenerateSubToTopicUrl
generateSubToTopicUrl generates a url based on the instnace id and topic name
instanceid.go:238
↓ 2 callersMethodnewDevicesList
newDevicesList init the devices list
fcm.go:135
↓ 1 callersMethodAppendDevices
AppendDevices adds more devices/tokens to the Fcm request
fcm.go:144
↓ 1 callersMethodNewFcmRegIdsMsg
NewFcmRegIdsMsg gets a list of devices with data payload
fcm.go:126
↓ 1 callersFunctionparseApnsBatchResponse
parseApnsBatchResponse converts apns byte response to ApnsBatchResponse
instanceid.go:433
↓ 1 callersMethodparseStatusBody
parseStatusBody parse FCM response body
fcm.go:214
↓ 1 callersFunctionparseSubscribeResponse
parseSubscribeResponse converts a byte response to a SubscribeResponse
instanceid.go:213
↓ 1 callersMethodsendOnce
sendOnce send a single request to fcm
fcm.go:157
↓ 1 callersMethodtoJsonByte
toJsonByte converts FcmMsg to a json byte
fcm.go:207
MethodApnsBatchImportRequest
ApnsBatchImportRequest apns import requst
instanceid.go:379
MethodBatchSubscribeToTopic
BatchSubscribeToTopic subscribes (many) devices/tokens to a given topic
instanceid.go:248
MethodBatchUnsubscribeFromTopic
BatchUnsubscribeFromTopic unsubscribes (many) devices/tokens from a given topic
instanceid.go:289
MethodGetInfo
GetInfo gets the instance id info
instanceid.go:104
MethodGetRetryAfterTime
GetRetryAfterTime converts the retrey after response header to a time.Duration
fcm.go:366
MethodIsTimeout
IsTimeout check whether the response timeout based on http response status code and if any error is retryable
fcm.go:348
MethodPrintResults
PrintResults prints InstanceIdInfoResponse, for faster debugging
instanceid.go:155
MethodPrintResults
PrintResults prints SubscribeResponse, for faster debugging
instanceid.go:227
MethodPrintResults
PrintResults prints BatchResponse, for faster debugging
instanceid.go:331
MethodPrintResults
PrintResults prints ApnsBatchResponse, for faster debugging
instanceid.go:445
MethodPrintResults
PrintResults prints the FcmResponseStatus results for fast using and debugging
fcm.go:331
MethodSetCollapseKey
SetCollapseKey This parameter identifies a group of messages (e.g., with collapse_key: "Updates Available") that can be collapsed, so that only the la
fcm.go:241
MethodSetCondition
SetCondition to set a logical expression of conditions that determine the message target
fcm.go:372
MethodSetContentAvailable
SetContentAvailable On iOS, use this field to represent content-available in the APNS payload. When a notification or message is sent and this is set
fcm.go:261
MethodSetDelayWhileIdle
SetDelayWhileIdle When this parameter is set to true, it indicates that the message should not be sent until the device becomes active. The default va
fcm.go:271
MethodSetDryRun
SetDryRun This parameter, when set to true, allows developers to test a request without actually sending a message. The default value is false
fcm.go:310
MethodSetMutableContent
SetMutableContent Currently for iOS 10+ devices only. On iOS, use this field to represent mutable-content in the APNs payload. When a notification is
fcm.go:323
MethodSetNotificationPayload
SetNotificationPayload sets the notification payload based on the specs https://firebase.google.com/docs/cloud-messaging/http-server-ref
fcm.go:250
MethodSetPriority
SetPriority Sets the priority of the message. Priority_HIGH or Priority_NORMAL
fcm.go:225
MethodSetRestrictedPackageName
SetRestrictedPackageName This parameter specifies the package name of the application where the registration tokens must match in order to receive the
fcm.go:300
MethodSetTimeToLive
SetTimeToLive This parameter specifies how long (in seconds) the message should be kept in FCM storage if the device is offline. The maximum time to l
fcm.go:283
MethodSubscribeToTopic
SubscribeToTopic subscribes a single device/token to a topic
instanceid.go:181
FunctionTestExtractTopicName
(t *testing.T)
instanceid_test.go:108
FunctionTestGenInfoResult1
(t *testing.T)
instanceid_test.go:16
FunctionTestGenInfoResult2
(t *testing.T)
instanceid_test.go:30
FunctionTestGenInfoResult3
(t *testing.T)
instanceid_test.go:60
FunctionTestGenTopicUrl
(t *testing.T)
instanceid_test.go:7
FunctionTestParseApnsBatchToByte
(t *testing.T)
instanceid_test.go:73
FunctionTestRegIdHandle_1
(t *testing.T)
fcm_test.go:87
FunctionTestRegIdHandle_2
(t *testing.T)
fcm_test.go:121
FunctionTestTopicHandle_1
(t *testing.T)
fcm_test.go:10
FunctionTestTopicHandle_2
(t *testing.T)
fcm_test.go:34
FunctionTestTopicHandle_3
(t *testing.T)
fcm_test.go:58
FunctionregIdHandle
(w http.ResponseWriter, r *http.Request)
fcm_test.go:172
FunctiontopicHandle
(w http.ResponseWriter, r *http.Request)
fcm_test.go:166