Subscribe or unsubscribe a single user's device to/from all FCM topics (channels).
(uid types.Uid, deviceID string, sub bool)
| 698 | |
| 699 | // Subscribe or unsubscribe a single user's device to/from all FCM topics (channels). |
| 700 | func userChannelsSubUnsub(uid types.Uid, deviceID string, sub bool) { |
| 701 | push.ChannelSub(&push.ChannelReq{ |
| 702 | Uid: uid, |
| 703 | DeviceID: deviceID, |
| 704 | Unsub: !sub, |
| 705 | }) |
| 706 | } |
| 707 | |
| 708 | // UserCacheReq contains data which mutates one or more user cache entries. |
| 709 | type UserCacheReq struct { |
no test coverage detected
searching dependent graphs…