Documentation ¶
Index ¶
- type ServeMux
- type Server
- func (s *Server) GetAddress() string
- func (s *Server) GetMux() *ServeMux
- func (s *Server) Reconfigure(addr string) error
- func (s *Server) Restart(addr string) error
- func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *Server) Shutdown(wait bool)
- func (s *Server) Start(addr string) error
- func (s *Server) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServeMux ¶
ServeMux is our HTTP request multiplexer with removable handlers.
func (*ServeMux) HandleFunc ¶
HandleFunc registers a handler function for the given pattern.
type Server ¶
Server is our HTTP server, with support for unregistering handlers.
func (*Server) GetAddress ¶
GetAddress returns the current server HTTP endpoint/address.
func (*Server) Reconfigure ¶
Reconfigure reconfigures the server.
func (*Server) ServeHTTP ¶
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP servers the given HTTP request.
Click to show internal directories.
Click to hide internal directories.