summaryrefslogtreecommitdiff
path: root/src/hub/src/spreadspace.org/sfive/s5srvForwardPiwik.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/hub/src/spreadspace.org/sfive/s5srvForwardPiwik.go')
-rw-r--r--src/hub/src/spreadspace.org/sfive/s5srvForwardPiwik.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/hub/src/spreadspace.org/sfive/s5srvForwardPiwik.go b/src/hub/src/spreadspace.org/sfive/s5srvForwardPiwik.go
index 198a53c..f3f71e7 100644
--- a/src/hub/src/spreadspace.org/sfive/s5srvForwardPiwik.go
+++ b/src/hub/src/spreadspace.org/sfive/s5srvForwardPiwik.go
@@ -138,6 +138,9 @@ tryResync:
}
}
-func (srv Server) RunForwardingPiwik(piwikURL, siteURL string, siteID uint, piwikToken string) {
- srv.forwardPiwikRun(piwikURL, siteURL, siteID, piwikToken, http.DefaultClient)
+func (srv Server) RunForwardingPiwik(cfg PiwikForwardConfig) {
+ s5l.Printf("srv|fwd-piwik: forwarding to '%s'", cfg.URL)
+ defer s5l.Println("srv|fwd-piwik: forwarder stopped")
+
+ srv.forwardPiwikRun(cfg.URL, cfg.SiteURL, cfg.SiteID, cfg.AuthConfig.Token, http.DefaultClient)
}