some work done
This commit is contained in:
parent
a735b9cc5e
commit
09fe1cd163
13 changed files with 174 additions and 45 deletions
29
pkg/haproxy/config.go
Normal file
29
pkg/haproxy/config.go
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
package haproxy
|
||||
|
||||
type Config struct {
|
||||
LoadBalancers []LoadBalancer
|
||||
}
|
||||
|
||||
type LoadBalancer struct {
|
||||
Name string
|
||||
IP string
|
||||
Options Options
|
||||
Ports []Port
|
||||
}
|
||||
|
||||
type Options struct {
|
||||
Frontend []string
|
||||
Backend []string
|
||||
DefaultServer string
|
||||
}
|
||||
|
||||
type Port struct {
|
||||
Port int
|
||||
Servers []Server
|
||||
}
|
||||
|
||||
type Server struct {
|
||||
Name string
|
||||
IP string
|
||||
Port int
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue