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
a5faf82f
Commit
a5faf82f
authored
2 years ago
by
Josh Brooks
Committed by
Jake Taylor
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Expose GetNodeRegistrationStatus to the bindings
parent
a424681a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!510
Release
,
!313
Expose GetNodeRegistrationStatus to the bindings
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bindings/follow.go
+15
-3
15 additions, 3 deletions
bindings/follow.go
bindings/group.go
+1
-0
1 addition, 0 deletions
bindings/group.go
xxdk/cmix.go
+3
-3
3 additions, 3 deletions
xxdk/cmix.go
with
19 additions
and
6 deletions
bindings/follow.go
+
15
−
3
View file @
a5faf82f
...
@@ -83,13 +83,25 @@ func (c *Cmix) WaitForNetwork(timeoutMS int) bool {
...
@@ -83,13 +83,25 @@ func (c *Cmix) WaitForNetwork(timeoutMS int) bool {
// NetworkFollowerStatus gets the state of the network follower. It returns a
// NetworkFollowerStatus gets the state of the network follower. It returns a
// status with the following values:
// status with the following values:
// Stopped - 0
//
// Running - 2000
// Status:
// Stopping - 3000
// - Stopped - 0
// - Running - 2000
// - Stopping - 3000
func
(
c
*
Cmix
)
NetworkFollowerStatus
()
int
{
func
(
c
*
Cmix
)
NetworkFollowerStatus
()
int
{
return
int
(
c
.
api
.
NetworkFollowerStatus
())
return
int
(
c
.
api
.
NetworkFollowerStatus
())
}
}
// GetNodeRegistrationStatus returns the current state of node registration.
//
// Returns:
// - The number of nodes with which the user is registered.
// - The number of nodes present in the NDF.
// - An error will most likely occur if the network is unhealthy.
func
(
c
*
Cmix
)
GetNodeRegistrationStatus
()
(
int
,
int
,
error
)
{
return
c
.
api
.
GetNodeRegistrationStatus
()
}
// HasRunningProcessies checks if any background threads are running and returns
// HasRunningProcessies checks if any background threads are running and returns
// true if one or more are.
// true if one or more are.
//
//
...
...
This diff is collapsed.
Click to expand it.
bindings/group.go
0 → 100644
+
1
−
0
View file @
a5faf82f
package
bindings
This diff is collapsed.
Click to expand it.
xxdk/cmix.go
+
3
−
3
View file @
a5faf82f
...
@@ -445,9 +445,9 @@ func (c *Cmix) GetEventReporter() event.Reporter {
...
@@ -445,9 +445,9 @@ func (c *Cmix) GetEventReporter() event.Reporter {
}
}
// GetNodeRegistrationStatus gets the current state of nodes registration. It
// GetNodeRegistrationStatus gets the current state of nodes registration. It
// returns the
total
number of nodes
in the NDF and the number of those that are
// returns
the number of nodes
that the user is currently registered with and
//
currently registered with
. An error is returned if the network
is not
//
the total number of nodes in the NDF
. An error is returned if the network
// healthy.
//
is not
healthy.
func
(
c
*
Cmix
)
GetNodeRegistrationStatus
()
(
int
,
int
,
error
)
{
func
(
c
*
Cmix
)
GetNodeRegistrationStatus
()
(
int
,
int
,
error
)
{
// Return an error if the network is not healthy
// Return an error if the network is not healthy
if
!
c
.
GetCmix
()
.
IsHealthy
()
{
if
!
c
.
GetCmix
()
.
IsHealthy
()
{
...
...
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