Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
5320:866eae1bd888 | 5321:0919946f624b |
---|---|
119 // to be served to to the web client. | 119 // to be served to to the web client. |
120 func PublishedConfig() string { return viper.GetString("published-config") } | 120 func PublishedConfig() string { return viper.GetString("published-config") } |
121 | 121 |
122 // SOAPTimeout is the timeout till a SOAP request is canceled. | 122 // SOAPTimeout is the timeout till a SOAP request is canceled. |
123 func SOAPTimeout() time.Duration { return viper.GetDuration("soap-timeout") } | 123 func SOAPTimeout() time.Duration { return viper.GetDuration("soap-timeout") } |
124 | |
125 // ReportPath is a path where report templates are stored. | |
126 func ReportPath() string { return viper.GetString("report-path") } | |
124 | 127 |
125 var ( | 128 var ( |
126 proxyKeyOnce sync.Once | 129 proxyKeyOnce sync.Once |
127 proxyKey []byte | 130 proxyKey []byte |
128 proxyPrefixOnce sync.Once | 131 proxyPrefixOnce sync.Once |
288 | 291 |
289 str("schema-dirs", ".", "Directories to find XSD schema files in (recursive).") | 292 str("schema-dirs", ".", "Directories to find XSD schema files in (recursive).") |
290 | 293 |
291 str("published-config", "", "path to a config file served to client.") | 294 str("published-config", "", "path to a config file served to client.") |
292 | 295 |
296 str("report-path", "", "path to a report templates.") | |
297 | |
293 d("soap-timeout", 3*time.Minute, "Timeout till a SOAP request is canceled.") | 298 d("soap-timeout", 3*time.Minute, "Timeout till a SOAP request is canceled.") |
294 } | 299 } |
295 | 300 |
296 var ( | 301 var ( |
297 configCond = sync.NewCond(new(sync.Mutex)) | 302 configCond = sync.NewCond(new(sync.Mutex)) |