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
db26c9e2
Commit
db26c9e2
authored
2 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Add & expose connect.ConnectionServer to restlike's connection server object
parent
6e8960ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!510
Release
,
!266
Add & expose connect.ConnectionServer to restlike's connection server object
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
restlike/connect/server.go
+5
-3
5 additions, 3 deletions
restlike/connect/server.go
with
5 additions
and
3 deletions
restlike/connect/server.go
+
5
−
3
View file @
db26c9e2
...
...
@@ -16,14 +16,16 @@ import (
// Server implements the RestServer interface using connect.Connection
type
Server
struct
{
receptionId
*
id
.
ID
endpoints
*
restlike
.
Endpoints
receptionId
*
id
.
ID
endpoints
*
restlike
.
Endpoints
ConnectServer
*
connect
.
ConnectionServer
}
// NewServer builds a RestServer with connect.Connection and
// the provided arguments, then registers necessary external services
func
NewServer
(
identity
xxdk
.
ReceptionIdentity
,
net
*
xxdk
.
Cmix
,
p
xxdk
.
E2EParams
,
clParams
connect
.
ConnectionListParams
)
(
*
Server
,
error
)
{
var
err
error
newServer
:=
&
Server
{
receptionId
:
identity
.
ID
,
endpoints
:
restlike
.
NewEndpoints
(),
...
...
@@ -36,7 +38,7 @@ func NewServer(identity xxdk.ReceptionIdentity, net *xxdk.Cmix,
}
// Build the connection listener
_
,
err
:
=
connect
.
StartServer
(
identity
,
cb
,
net
,
p
,
clParams
)
newServer
.
ConnectServer
,
err
=
connect
.
StartServer
(
identity
,
cb
,
net
,
p
,
clParams
)
if
err
!=
nil
{
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