Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { URL *url.URL Alive bool ReverseProxy *httputil.ReverseProxy // contains filtered or unexported fields }
type LoadBalancer ¶
type LoadBalancer struct {
// contains filtered or unexported fields
}
func (*LoadBalancer) Run ¶
func (a *LoadBalancer) Run(host, port string)
type ServerPool ¶
type ServerPool struct {
// contains filtered or unexported fields
}
func (*ServerPool) AddBackend ¶
func (s *ServerPool) AddBackend(backend *Backend)
func (*ServerPool) GetNextPeer ¶
func (s *ServerPool) GetNextPeer() *Backend
func (*ServerPool) NextIndex ¶
func (s *ServerPool) NextIndex() int
Click to show internal directories.
Click to hide internal directories.