diff pkg/config/config.go @ 5321:0919946f624b extented-report

Added a report controller.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 27 May 2021 01:22:10 +0200
parents 209b10f7bb2c
children 5f47eeea988d
line wrap: on
line diff
--- a/pkg/config/config.go	Wed May 26 19:10:45 2021 +0200
+++ b/pkg/config/config.go	Thu May 27 01:22:10 2021 +0200
@@ -122,6 +122,9 @@
 // SOAPTimeout is the timeout till a SOAP request is canceled.
 func SOAPTimeout() time.Duration { return viper.GetDuration("soap-timeout") }
 
+// ReportPath is a path where report templates are stored.
+func ReportPath() string { return viper.GetString("report-path") }
+
 var (
 	proxyKeyOnce       sync.Once
 	proxyKey           []byte
@@ -290,6 +293,8 @@
 
 	str("published-config", "", "path to a config file served to client.")
 
+	str("report-path", "", "path to a report templates.")
+
 	d("soap-timeout", 3*time.Minute, "Timeout till a SOAP request is canceled.")
 }