Versions in this module Expand all Collapse all v1 v1.0.2 Nov 16, 2021 Changes in this version + type Backend struct + Alive bool + ReverseProxy *httputil.ReverseProxy + URL *url.URL + func (b *Backend) IsAlive() (alive bool) + func (b *Backend) SetAlive(alive bool) + type LoadBalancer struct + func (a *LoadBalancer) Run(host, port string) + type ServerPool struct + func (s *ServerPool) AddBackend(backend *Backend) + func (s *ServerPool) GetNextPeer() *Backend + func (s *ServerPool) NextIndex() int