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
04b70b11
Commit
04b70b11
authored
Apr 21, 2022
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
d537913a
No related branches found
No related tags found
4 merge requests
!510
Release
,
!207
WIP: Client Restructure
,
!206
Built the connection interface which wraps e2e and auth objects and manages a...
,
!203
Symmetric broadcast
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
connect/connect.go
+3
-3
3 additions, 3 deletions
connect/connect.go
with
3 additions
and
3 deletions
connect/connect.go
+
3
−
3
View file @
04b70b11
...
@@ -52,6 +52,9 @@ type Connection interface {
...
@@ -52,6 +52,9 @@ type Connection interface {
Unregister
(
listenerID
receive
.
ListenerID
)
Unregister
(
listenerID
receive
.
ListenerID
)
}
}
// Callback is the callback format required to retrieve new Connection objects as they are established
type
Callback
func
(
connection
Connection
)
// handler provides an implementation for the Connection interface
// handler provides an implementation for the Connection interface
type
handler
struct
{
type
handler
struct
{
partner
partner
.
Manager
partner
partner
.
Manager
...
@@ -194,9 +197,6 @@ type authCallback struct {
...
@@ -194,9 +197,6 @@ type authCallback struct {
connectionParams
Params
connectionParams
Params
}
}
//
type
Callback
func
(
connection
Connection
)
// getAuthCallback returns a callback interface to be passed into the creation of an auth.State object.
// getAuthCallback returns a callback interface to be passed into the creation of an auth.State object.
func
getAuthCallback
(
cb
Callback
,
e2e
clientE2e
.
Handler
,
params
Params
)
authCallback
{
func
getAuthCallback
(
cb
Callback
,
e2e
clientE2e
.
Handler
,
params
Params
)
authCallback
{
return
authCallback
{
return
authCallback
{
...
...
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