traefik/configuration.go
2015-09-09 17:41:33 +02:00

25 lines
No EOL
309 B
Go

package main
type Backend struct {
Servers map[string]Server
}
type Server struct {
Url string
}
type Rule struct {
Category string
Value string
}
type Route struct {
Backend string
Rules map[string]Rule
}
type Configuration struct {
Backends map[string]Backend
Routes map[string]Route
}