Providers refactoring

This commit is contained in:
emile 2015-09-07 10:38:58 +02:00
parent 8fcbd73edc
commit bf37869b8f
4 changed files with 169 additions and 67 deletions

25
service.go Normal file
View file

@ -0,0 +1,25 @@
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
}
type Service struct {
Backends map[string]Backend
Routes map[string]Route
}