Skip to content

Commit a303220

Browse files
committed
chore: reorder struct fields for readability
1 parent 231ca56 commit a303220

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

modules/toxiproxy/config.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ import (
88

99
// proxy represents a single proxy configuration in the toxiproxy config file
1010
type proxy struct {
11-
Name string `json:"name"`
12-
Listen string `json:"listen"`
11+
Name string `json:"name"`
12+
Listen string `json:"listen"`
13+
Upstream string `json:"upstream"`
14+
Enabled bool `json:"enabled"`
15+
1316
listenIP string
14-
listenPort int
15-
Upstream string `json:"upstream"`
1617
upstreamIP string
18+
listenPort int
1719
upstreamPort int
18-
Enabled bool `json:"enabled"`
1920
}
2021

2122
// sanitize is a helper function that returns another proxy

0 commit comments

Comments
 (0)