Documentation ¶
Overview ¶
Package server contains the logic of the Service Manager server and a mux router
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server is the server to process incoming HTTP requests
type Settings ¶
type Settings struct { Host string `mapstructure:"host" description:"host of the server"` Port int `mapstructure:"port" description:"port of the server"` RequestTimeout time.Duration `mapstructure:"request_timeout" description:"read and write timeout duration for requests"` ShutdownTimeout time.Duration `mapstructure:"shutdown_timeout" description:"time to wait for the server to shutdown"` MaxBodyBytes int `mapstructure:"max_body_bytes" description:"maximum bytes size of incoming body"` MaxHeaderBytes int `mapstructure:"max_header_bytes" description:"the maximum number of bytes the server will read parsing the request header"` }
Settings type to be loaded from the environment
func DefaultSettings ¶
func DefaultSettings() *Settings
DefaultSettings returns the default values for configuring the Service Manager
Click to show internal directories.
Click to hide internal directories.