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 ServerPool ¶
type ServerPool struct {
// contains filtered or unexported fields
}
func NewServerPool ¶
func NewServerPool(lg *log.Logger) *ServerPool
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.