refactor rules -> routes, routes -> frontends
This commit is contained in:
parent
74ae3eaa01
commit
a4f542c02f
7 changed files with 62 additions and 62 deletions
|
@ -34,17 +34,17 @@ type Server struct {
|
|||
Weight int
|
||||
}
|
||||
|
||||
type Rule struct {
|
||||
type Route struct {
|
||||
Category string
|
||||
Value string
|
||||
}
|
||||
|
||||
type Route struct {
|
||||
type Frontend struct {
|
||||
Backend string
|
||||
Rules map[string]Rule
|
||||
Routes map[string]Route
|
||||
}
|
||||
|
||||
type Configuration struct {
|
||||
Backends map[string]Backend
|
||||
Routes map[string]Route
|
||||
Frontends map[string]Frontend
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue