This commit is contained in:
emile 2015-09-11 16:37:13 +02:00
parent ee13d570d8
commit 85e1af878a
8 changed files with 288 additions and 47 deletions

View file

@ -1,12 +1,16 @@
package main
type GlobalConfiguration struct {
Port string
GraceTimeOut int64
Docker *DockerProvider
File *FileProvider
Web *WebProvider
Marathon *MarathonProvider
Port string
GraceTimeOut int64
AccessLogsFile string
TraefikLogsFile string
TraefikLogsStdout bool
LogLevel string
Docker *DockerProvider
File *FileProvider
Web *WebProvider
Marathon *MarathonProvider
}
func NewGlobalConfiguration() *GlobalConfiguration {
@ -23,7 +27,7 @@ type Backend struct {
}
type Server struct {
Url string
Url string
Weight int
}
@ -34,7 +38,7 @@ type Rule struct {
type Route struct {
Backend string
Rules map[string]Rule
Rules map[string]Rule
}
type Configuration struct {