Skip to content
Snippets Groups Projects
Commit 57eecf61 authored by Josh Brooks's avatar Josh Brooks
Browse files

Add a SetDashboardURL

parent 634c209f
No related branches found
No related tags found
2 merge requests!510Release,!368Add field RoundUrl to all send reporters in bindings
...@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment