Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeUntilInterrupted ¶
func ServeUntilInterrupted()
ServeUntilInterrupted is the main module entry point that configures and starts a webserver, which runs until one of OS shutdown signals are received. The function is blocking.
Types ¶
type Server ¶
type Server struct { Config *Config Logger *log.Logger InterruptChan chan os.Signal DefaultHeaders map[string]string // contains filtered or unexported fields }
Server holds entities that can be used to control the web server
func NewConfiguredServer ¶
func NewConfiguredServer() *Server
NewConfiguredServer returns a server initialized with settings from global config.
func (*Server) ServeUntilShutdown ¶
func (s *Server) ServeUntilShutdown()
ServeUntilShutdown blocks until a shutdown signal is received, then shuts down the http server.
Click to show internal directories.
Click to hide internal directories.