Documentation ¶
Overview ¶
Copyright (c) 2014 Tyler Bunnell
Index ¶
- type Server
- func (srv *Server) ListenAndServe() error
- func (srv *Server) ListenAndServeTLS(certFile, keyFile string) error
- func (srv *Server) ListenAndServeTLSConfig(config *tls.Config) error
- func (srv *Server) ListenTLS(certFile, keyFile string) (net.Listener, error)
- func (srv *Server) Serve(listener net.Listener) error
- func (srv *Server) SetAddr(addr string)
- func (srv *Server) SetHandler(h http.Handler)
- func (srv *Server) SetLogger(logger framework.LogWriter)
- func (srv *Server) Stop(timeout time.Duration)
- func (srv *Server) StopChan() <-chan struct{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { *http.Server Timeout time.Duration ListenLimit int ConnState func(net.Conn, http.ConnState) BeforeShutdown func() ShutdownInitiated func() NoSignalHandling bool Logger framework.LogWriter Interrupted bool // contains filtered or unexported fields }
func (*Server) ListenAndServe ¶
func (*Server) ListenAndServeTLS ¶
func (*Server) ListenAndServeTLSConfig ¶
func (*Server) SetHandler ¶
Click to show internal directories.
Click to hide internal directories.