Documentation ¶
Overview ¶
Package server provides a http server with request timeout and grateful shutdown.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server contains a http server.
func (*Server) ServeUnblock ¶
func (s *Server) ServeUnblock()
ServeUnblock serves the http server inside a goroutine so that it doesn't block. Will crash if the server failed to bind the port.
Click to show internal directories.
Click to hide internal directories.