service -> configuration
This commit is contained in:
parent
7fcc4761da
commit
cef926379c
5 changed files with 53 additions and 51 deletions
25
configuration.go
Normal file
25
configuration.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 Configuration struct {
|
||||
Backends map[string]Backend
|
||||
Routes map[string]Route
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue