Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port int `mapstructure:"port" description:"port of the server"` Timeout 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"` RootAPI string `mapstructure:"root_api" description:"the root api used for all other subroutes"` SelfURL string `mapstructure:"self_url" description:"an externally accessible url pointing to this server's fully qualified root address'"` }
Settings type to be loaded from the environment
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultSettings returns the default values for configuring the System Broker
Click to show internal directories.
Click to hide internal directories.