Skip to content

Commit 8151889

Browse files
author
Vighneswar Rao Bojja
committed
Add Additional Upstream Server Parameters
1 parent 136a767 commit 8151889

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

client/nginx.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ type UpstreamServer struct {
3333
MaxFails int `json:"max_fails"`
3434
FailTimeout string `json:"fail_timeout,omitempty"`
3535
SlowStart string `json:"slow_start,omitempty"`
36+
Route string `json:"route"`
37+
Backup bool `json:"backup"`
38+
Down bool `json:"down"`
39+
Drain bool `json:"drain"`
40+
Weight int `json:"weight"`
41+
Service string `json:"service"`
3642
}
3743

3844
// StreamUpstreamServer lets you configure Stream upstreams.
@@ -43,6 +49,12 @@ type StreamUpstreamServer struct {
4349
MaxFails int `json:"max_fails"`
4450
FailTimeout string `json:"fail_timeout,omitempty"`
4551
SlowStart string `json:"slow_start,omitempty"`
52+
Route string `json:"route"`
53+
Backup bool `json:"backup"`
54+
Down bool `json:"down"`
55+
Drain bool `json:"drain"`
56+
Weight int `json:"weight"`
57+
Service string `json:"service"`
4658
}
4759

4860
type apiErrorResponse struct {

0 commit comments

Comments
 (0)