Make Application name configurable
This commit is contained in:
+15
-1
@@ -1,12 +1,16 @@
|
||||
package properties
|
||||
|
||||
var (
|
||||
// Version defines the version of the web application kontor.
|
||||
// Version defines the version of the web application kalorienmanager.
|
||||
Version = "undefined"
|
||||
// Debug defines the property debug to be used for more verbose output.
|
||||
Debug = false
|
||||
// Port defines port number under the web application is reachable.
|
||||
Port = 8500
|
||||
// Application defines the name of the web application
|
||||
Application = ""
|
||||
// TemplatePrefix defines the prefix for general templates
|
||||
TemplatePrefix = ""
|
||||
)
|
||||
|
||||
// SetVersion sets Version with given value.
|
||||
@@ -23,3 +27,13 @@ func SetDebug(value bool) {
|
||||
func SetPort(value int) {
|
||||
Port = value
|
||||
}
|
||||
|
||||
// SetApplication sets Applivcation with given value.
|
||||
func SetApplication(value string) {
|
||||
Application = value
|
||||
}
|
||||
|
||||
// SetTemplatePrefix sets TemplatePrefix with given value.
|
||||
func SetTemplatePrefix(value string) {
|
||||
TemplatePrefix = value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user