Providers refactoring
This commit is contained in:
parent
8fcbd73edc
commit
bf37869b8f
4 changed files with 169 additions and 67 deletions
25
service.go
Normal file
25
service.go
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue