Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶ added in v0.10.3
type Options struct { Address string ProxyService *proxy.ProxyService StopWaitSeconds int }
Options holds basic web server settings.
type Server ¶
type Server struct { monitor.ModuleLogger DefaultHeaders map[string]string Environment *environment.Env ProxyService *proxy.ProxyService // contains filtered or unexported fields }
Server holds entities that can be used to control the web server
func NewServer ¶ added in v0.7.0
NewServer returns a server initialized with settings from supplied options.
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.