Versions in this module Expand all Collapse all v0 v0.1.2 Apr 17, 2015 v0.1.1 Apr 17, 2015 v0.1.0 Apr 14, 2015 Changes in this version + const DefaultHostname + const DefaultMaxConnections + const DefaultMaxProcs + const DefaultMaxWorkers + const DefaultPort + const DefaultProfPort + const InvalidAuthorization + const InvalidBody + const InvalidJSONAttribute + const InvalidJSONText + const InvalidMediaType + const InvalidMethod + const TCPKeepAliveTimeout + const TCPReadTimeout + const TCPWriteTimeout + var StoppedError = errors.New("Server stop requested.") + func PrintUsageAndExit() + func PrintVersionAndExit() + type Info struct + Debug bool + Hostname string + MaxConn int + MaxWorkers int + Name string + Port int + ProfPort int + UUID string + Version string + func InfoNew(options ...func(*Info)) *Info + func (i *Info) String() string + type Middleware struct + func (m *Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Options struct + Debug bool + Hostname string + MaxConn int + MaxProcs int + MaxWorkers int + Name string + Port int + ProfPort int + func (o *Options) String() string + type Server struct + func New(opts *Options, addedOptions ...func(*Server)) *Server + func (s *Server) LogRequest(r *http.Request) + func (s *Server) Shutdown() bool + func (s *Server) Start() + func (s *Server) StartProfiler() + type Status struct + ConnNumAvail int + RequestBytes int64 + RequestCount int64 + RouteStats map[string]map[string]int64 + Start time.Time + func StatusNew(options ...func(*Status)) *Status + func (s *Status) IncrRequestStats(rb int64) + func (s *Status) IncrRouteStats(path string, rb int64) + func (s *Status) String() string + type ThrottledConn struct + func (c *ThrottledConn) Close() error + func (c *ThrottledConn) Done() + type ThrottledListener struct + func ThrottledListenerNew(addr string, mxConn int) (*ThrottledListener, error) + func (t *ThrottledListener) Accept() (net.Conn, error) + func (t *ThrottledListener) GetConnNumAvail() int + func (t *ThrottledListener) Stop() v0.1.0-alpha Mar 25, 2015