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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
aea77fc2
Commit
aea77fc2
authored
May 2, 2022
by
Jono Wenger
Browse files
Options
Downloads
Patches
Plain Diff
Fix proto generation fiule and add documentation
parent
a7abeffd
No related branches found
No related tags found
4 merge requests
!510
Release
,
!226
WIP: Api2.0
,
!210
XX-3880 / Generic File Transfer
,
!207
WIP: Client Restructure
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
fileTransfer2/e2e/ftMessages.proto
+8
-8
8 additions, 8 deletions
fileTransfer2/e2e/ftMessages.proto
fileTransfer2/e2e/generateProto.sh
+1
-1
1 addition, 1 deletion
fileTransfer2/e2e/generateProto.sh
fileTransfer2/e2e/manager.go
+3
-0
3 additions, 0 deletions
fileTransfer2/e2e/manager.go
with
12 additions
and
9 deletions
fileTransfer2/e2e/ftMessages.proto
+
8
−
8
View file @
aea77fc2
This diff is collapsed.
Click to expand it.
fileTransfer2/e2e/generateProto.sh
+
1
−
1
View file @
aea77fc2
...
...
@@ -7,4 +7,4 @@
# LICENSE file ///
#
protoc
--go_out
=
paths
=
source_relative:. fileTransfer/ftMessages.proto
protoc
--go_out
=
paths
=
source_relative:. fileTransfer
2/e2e
/ftMessages.proto
This diff is collapsed.
Click to expand it.
fileTransfer2/e2e/manager.go
+
3
−
0
View file @
aea77fc2
...
...
@@ -28,6 +28,8 @@ const (
errNewFtManager
=
"cannot create new E2E file transfer manager: %+v"
)
// manager handles the sending and receiving of file transfers using E2E
// messages to inform the recipient of incoming file transfers.
type
manager
struct
{
// Callback that is called every time a new file transfer is received
receiveCB
ft
.
ReceiveCallback
...
...
@@ -49,6 +51,7 @@ type E2e interface {
newListener
receive
.
Listener
)
receive
.
ListenerID
}
// NewManager generates a new file transfer manager using E2E.
func
NewManager
(
receiveCB
ft
.
ReceiveCallback
,
params
ft
.
Params
,
myID
*
id
.
ID
,
e2e
E2e
,
cmix
ft
.
Cmix
,
kv
*
versioned
.
KV
,
rng
*
fastRNG
.
StreamGenerator
)
(
ft
.
FileTransfer
,
error
)
{
...
...
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