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
ef8e90f4
Commit
ef8e90f4
authored
3 years ago
by
Jonah Husson
Browse files
Options
Downloads
Patches
Plain Diff
More comments, use reception id instead of transmission ID for file transfer manager
parent
eb23874b
No related branches found
No related tags found
2 merge requests
!510
Release
,
!228
New bindings for api2.0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
bindings/fileTransfer.go
+1
-1
1 addition, 1 deletion
bindings/fileTransfer.go
bindings/params.go
+6
-0
6 additions, 0 deletions
bindings/params.go
with
7 additions
and
1 deletion
bindings/fileTransfer.go
+
1
−
1
View file @
ef8e90f4
...
@@ -97,7 +97,7 @@ func InitFileTransfer(e2eID int) (*FileTransfer, error) {
...
@@ -97,7 +97,7 @@ func InitFileTransfer(e2eID int) (*FileTransfer, error) {
}
}
// Client info
// Client info
myID
:=
e2eCl
.
api
.
Get
Transmiss
ionIdentity
()
.
ID
myID
:=
e2eCl
.
api
.
Get
Recept
ionIdentity
()
.
ID
rng
:=
e2eCl
.
api
.
GetRng
()
rng
:=
e2eCl
.
api
.
GetRng
()
params
,
err
:=
parseFileTransferParams
(
paramsJSON
)
params
,
err
:=
parseFileTransferParams
(
paramsJSON
)
...
...
This diff is collapsed.
Click to expand it.
bindings/params.go
+
6
−
0
View file @
ef8e90f4
...
@@ -40,6 +40,9 @@ func GetDefaultE2EParams() []byte {
...
@@ -40,6 +40,9 @@ func GetDefaultE2EParams() []byte {
return
data
return
data
}
}
// GetDefaultFileTransferParams returns a JSON serialized object with all the
// File transfer parameters and their default values. Call this function and modify
// the json to change file transfer settings.
func
GetDefaultFileTransferParams
()
[]
byte
{
func
GetDefaultFileTransferParams
()
[]
byte
{
defaultParams
:=
fileTransfer
.
DefaultParams
()
defaultParams
:=
fileTransfer
.
DefaultParams
()
data
,
err
:=
defaultParams
.
MarshalJSON
()
data
,
err
:=
defaultParams
.
MarshalJSON
()
...
@@ -49,6 +52,9 @@ func GetDefaultFileTransferParams() []byte {
...
@@ -49,6 +52,9 @@ func GetDefaultFileTransferParams() []byte {
return
data
return
data
}
}
// GetDefaultSingleUseParams returns a JSON serialized object with all the
// single use parameters and their default values. Call this function and modify
// the json to change single use settings.
func
GetDefaultSingleUseParams
()
[]
byte
{
func
GetDefaultSingleUseParams
()
[]
byte
{
defaultParams
:=
single
.
GetDefaultRequestParams
()
defaultParams
:=
single
.
GetDefaultRequestParams
()
data
,
err
:=
defaultParams
.
MarshalJSON
()
data
,
err
:=
defaultParams
.
MarshalJSON
()
...
...
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