Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Close ¶
func Close() bool
Close shuts down the default server used by ListenAndServe, ListenAndServeTLS and Serve. It returns true if it's the first time Close is called.
func ListenAndServe ¶
ListenAndServe provides a graceful version of the function provided by the net/http package. Call Close() to stop the server.
func ListenAndServeTLS ¶
ListenAndServeTLS provides a graceful version of the function provided by the net/http package. Call Close() to stop the server.
Types ¶
type Server ¶
type Server struct { *http.Server KillTimeOut time.Duration // contains filtered or unexported fields }
Server provides a graceful equivalent of net/http.Server.
func NewWithServer ¶
NewWithServer wraps an existing http.Server.
Click to show internal directories.
Click to hide internal directories.