Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
//ContentTypePlainText holds HTTP Content-Type text/plain
ContentTypePlainText = "text/plain; charset=utf-8"
)
Functions ¶
Types ¶
type Server ¶
Server holds the http.Server instance
func (*Server) GracefulShutdown ¶
func (s *Server) GracefulShutdown()
GracefulShutdown waits for os.Interrupt to gracefully shutdown the webserver there is a timeout of 30 seconds before the shutdown is forced.
Click to show internal directories.
Click to hide internal directories.