Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxdk Examples
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
elixxir
xxdk Examples
Merge requests
!8
Readme
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Readme
Readme
into
master
Overview
0
Commits
2
Pipelines
0
Changes
16
Merged
Josh Brooks
requested to merge
Readme
into
master
2 years ago
Overview
0
Commits
2
Pipelines
0
Changes
16
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
4815f75f
2 commits,
2 years ago
16 files
+
135
−
81
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
16
Search (e.g. *.vue) (Ctrl+P)
connectClient/README.md
+
3
−
3
Options
@@ -4,17 +4,17 @@ This mini-repository contains the example logic for running a basic connection
@@ -4,17 +4,17 @@ This mini-repository contains the example logic for running a basic connection
client. This is provided by the xx network team as a springboard to
client. This is provided by the xx network team as a springboard to
help consumers better understand our API and how it may be used.
help consumers better understand our API and how it may be used.
`main.go`
contains the crux of the logic. We avoid complicating our example by
[
`main.go`
](
main.go
)
contains the crux of the logic. We avoid complicating our example by
avoiding the usage of CLI flags for basic variables you may change in the code.
avoiding the usage of CLI flags for basic variables you may change in the code.
This file initiates an xxdk E2E object. With that established, a connection
This file initiates an xxdk E2E object. With that established, a connection
client is built on top. Using a precanned contact object created in
client is built on top. Using a precanned contact object created in
`connectServer`
this connection client contacts the server with a simple
`connectServer`
this connection client contacts the server with a simple
message.
message.
`utils.go`
contains utility functions for running the program. In this case,
[
`utils.go`
](
utils.go
)
contains utility functions for running the program. In this case,
we provide a tool initializing a log.
we provide a tool initializing a log.
`listener.go`
contains logic for handling the reception of a message via the
[
`listener.go`
](
listener.go
)
contains logic for handling the reception of a message via the
established connection. In this example, it is very basic. We invite consumers
established connection. In this example, it is very basic. We invite consumers
to use this as a basis to implement more complex message listeners.
to use this as a basis to implement more complex message listeners.
Loading