http_server

package
v0.0.0-...-acfe66a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2014 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(addr string) net.Listener

Types

type Proxy

type Proxy struct {
	//	last    time.Time
	Backend string
	// contains filtered or unexported fields
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(probe time.Duration) (*Server, error)

func (*Server) Next

func (s *Server) Next(vhost string) http.Handler

TODO: Implement more balance algorithms

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL