some work done

This commit is contained in:
ston1th 2021-03-01 07:40:10 +01:00
commit 09fe1cd163
13 changed files with 174 additions and 45 deletions

29
pkg/haproxy/config.go Normal file
View 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
}