traefik/configuration.go

25 lines
312 B
Go
Raw Normal View History

2015-09-07 08:38:58 +00:00
package main
type Backend struct {
Servers map[string]Server
}
type Server struct {
Url string
}
type Rule struct {
Category string
Value string
}
type Route struct {
Backends []string
Rules map[string]Rule
}
2015-09-07 22:15:14 +00:00
type Configuration struct {
2015-09-07 08:38:58 +00:00
Backends map[string]Backend
Routes map[string]Route
}