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
57eecf61
Commit
57eecf61
authored
2 years ago
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Add a SetDashboardURL
parent
634c209f
No related branches found
No related tags found
2 merge requests
!510
Release
,
!368
Add field RoundUrl to all send reporters in bindings
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/delivery.go
+14
-1
14 additions, 1 deletion
bindings/delivery.go
with
14 additions
and
1 deletion
bindings/delivery.go
+
14
−
1
View file @
57eecf61
...
@@ -20,7 +20,20 @@ import (
...
@@ -20,7 +20,20 @@ import (
// dashboardBaseURL is the base of the xx network's round dashboard URL.
// dashboardBaseURL is the base of the xx network's round dashboard URL.
// This should be used by any type of send report's GetRoundURL method.
// This should be used by any type of send report's GetRoundURL method.
const
dashboardBaseURL
=
"https://dashboard.xx.network"
var
dashboardBaseURL
=
"https://dashboard.xx.network"
// SetDashboardURL is a function which modifies the base dashboard URL
// that is returned as part of any send report. Internally, this is defaulted
// to "https://dashboard.xx.network". This should only be called if the user
// explicitly wants to modify the dashboard URL. This function is not
// thread-safe, and as such should only be called on setup.
//
// Parameters:
// - newURL - A valid URL that will be used for round look up on any send
// report.
func
SetDashboardURL
(
newURL
string
)
{
dashboardBaseURL
=
newURL
}
// getRoundURL is a helper function which returns the specific round
// getRoundURL is a helper function which returns the specific round
// within any type of send report, if they have a round in their RoundsList.
// within any type of send report, if they have a round in their RoundsList.
...
...
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