Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
a3743b6a
Commit
a3743b6a
authored
4 years ago
by
Jonah Husson
Browse files
Options
Downloads
Patches
Plain Diff
add bindings for register/unregister
parent
62226d2e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/notifications.go
+18
-0
18 additions, 0 deletions
bindings/notifications.go
with
18 additions
and
0 deletions
bindings/notifications.go
0 → 100644
+
18
−
0
View file @
a3743b6a
///////////////////////////////////////////////////////////////////////////////
// Copyright © 2021 xx network SEZC //
// //
// Use of this source code is governed by a license that can be found in the //
// LICENSE file //
///////////////////////////////////////////////////////////////////////////////
package
bindings
// Register for notifications, accepts firebase messaging token
func
(
c
*
Client
)
RegisterForNotifications
(
token
[]
byte
)
error
{
return
c
.
api
.
RegisterForNotifications
(
token
)
}
// Unregister for notifications
func
(
c
*
Client
)
UnregisterForNotifications
()
error
{
return
c
.
api
.
UnregisterForNotifications
()
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment