Add routes priorities in providers
Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
parent
287b3ba1f4
commit
f4cb4bb1b8
8 changed files with 25 additions and 4 deletions
|
@ -34,7 +34,7 @@ type CircuitBreaker struct {
|
|||
// Server holds server configuration.
|
||||
type Server struct {
|
||||
URL string `json:"url,omitempty"`
|
||||
Weight int `json:"weight,omitempty"`
|
||||
Weight int `json:"weight"`
|
||||
}
|
||||
|
||||
// Route holds route configuration.
|
||||
|
@ -52,7 +52,7 @@ type Frontend struct {
|
|||
Backend string `json:"backend,omitempty"`
|
||||
Routes map[string]Route `json:"routes,omitempty"`
|
||||
PassHostHeader bool `json:"passHostHeader,omitempty"`
|
||||
Priority int `json:"priority,omitempty"`
|
||||
Priority int `json:"priority"`
|
||||
}
|
||||
|
||||
// LoadBalancerMethod holds the method of load balancing to use.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue