convox/pkg/structs/balancer.go
David Dollar 959533686c
add custom load balancers (#15)
* add custom load balancers

* fix tests
2019-11-15 15:40:33 -05:00

19 lines
395 B
Go

package structs
type Balancer struct {
Name string `json:"name"`
Endpoint string `json:"endpoint"`
Ports BalancerPorts `json:"ports"`
Service string `json:"service"`
}
type Balancers []Balancer
type BalancerPort struct {
Protocol string `json:"protocol"`
Source int `json:"source"`
Target int `json:"target"`
}
type BalancerPorts []BalancerPort