Simplify port mapping of endpoints

This commit is contained in:
Manuel de Brito Fontes 2016-04-28 20:04:41 -03:00
parent 8bf7007c40
commit 996c769080
3 changed files with 52 additions and 35 deletions

View file

@ -82,8 +82,9 @@ func (c ServerByName) Less(i, j int) bool {
// Location describes an NGINX location
type Location struct {
Path string
Upstream Upstream
Path string
IsDefBackend bool
Upstream Upstream
}
// LocationByPath sorts location by path