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"` Port int `mapstructure:"port"` RequestTimeout time.Duration `mapstructure:"request_timeout"` ShutdownTimeout time.Duration `mapstructure:"shutdown_timeout"` MaxBodyBytes int `mapstructure:"max_body_bytes"` MaxHeaderBytes int `mapstructure:"max_header_bytes"` }
Settings type to be loaded from the environment
func DefaultSettings ¶
func DefaultSettings() *Settings
DefaultSettings returns the default values for configuring the Service Manager
func NewSettings ¶
func NewSettings(env env.Environment) (*Settings, error)
NewSettings returns Server settings for the given enrivonment
Click to show internal directories.
Click to hide internal directories.