Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSimpleServer ¶
func NewSimpleServer(addr string) *simpleServer
Creates and returns a new instance of the simpleServer struct
Types ¶
type Loadbalancer ¶
type Loadbalancer struct { Port string // contains filtered or unexported fields }
func NewLoadBalancer ¶
func NewLoadBalancer(port string, servers []lb.Server) *Loadbalancer
Creates a new loadbalancer instance
func (*Loadbalancer) ServeProxy ¶
func (loadbalancer *Loadbalancer) ServeProxy(rw http.ResponseWriter, req *http.Request)
Forwards the request to the server returned by the getNextAvailableServer method
Click to show internal directories.
Click to hide internal directories.