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
d490c0b1
Commit
d490c0b1
authored
2 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Fix binding documentation
parent
0f343657
No related branches found
No related tags found
1 merge request
!510
Release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/ud.go
+4
-4
4 additions, 4 deletions
bindings/ud.go
with
4 additions
and
4 deletions
bindings/ud.go
+
4
−
4
View file @
d490c0b1
...
@@ -296,14 +296,14 @@ type UdLookupCallback interface {
...
@@ -296,14 +296,14 @@ type UdLookupCallback interface {
// Parameters:
// Parameters:
// - e2eID - e2e object ID in the tracker
// - e2eID - e2e object ID in the tracker
// - udContact - the marshalled bytes of the contact.Contact object
// - udContact - the marshalled bytes of the contact.Contact object
// -
udIdBytes
- the marshalled bytes of the id.ID object for the user
// -
lookupId
- the marshalled bytes of the id.ID object for the user
//
discovery server
//
that LookupUD will look up.
// - singleRequestParams - the JSON marshalled bytes of single.RequestParams
// - singleRequestParams - the JSON marshalled bytes of single.RequestParams
//
//
// Returns:
// Returns:
// - []byte - the JSON marshalled bytes of SingleUseSendReport
// - []byte - the JSON marshalled bytes of SingleUseSendReport
func
LookupUD
(
e2eID
int
,
udContact
[]
byte
,
cb
UdLookupCallback
,
func
LookupUD
(
e2eID
int
,
udContact
[]
byte
,
cb
UdLookupCallback
,
udIdBytes
[]
byte
,
singleRequestParamsJSON
[]
byte
)
([]
byte
,
error
)
{
lookupId
[]
byte
,
singleRequestParamsJSON
[]
byte
)
([]
byte
,
error
)
{
// Get user from singleton
// Get user from singleton
user
,
err
:=
e2eTrackerSingleton
.
get
(
e2eID
)
user
,
err
:=
e2eTrackerSingleton
.
get
(
e2eID
)
...
@@ -316,7 +316,7 @@ func LookupUD(e2eID int, udContact []byte, cb UdLookupCallback,
...
@@ -316,7 +316,7 @@ func LookupUD(e2eID int, udContact []byte, cb UdLookupCallback,
return
nil
,
err
return
nil
,
err
}
}
uid
,
err
:=
id
.
Unmarshal
(
udIdBytes
)
uid
,
err
:=
id
.
Unmarshal
(
lookupId
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
...
...
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