Documentation ¶
Index ¶
Constants ¶
View Source
const ( Dev = "dev" Prod = "prod" Test = "test" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostConfig ¶
type HostConfig struct { Name string `mapstructure:"name"` Metadata string `mapstructure:"metadata"` Server WebServerConfig `mapstructure:"server"` }
type HttpServerConfig ¶ added in v1.6.1
type HttpServerConfig struct { IsTLS bool Addr string CertFile string `mapstructure:"cert"` KeyFile string `mapstructure:"key"` }
http server configuration
type StaticConfig ¶
type WebServerConfig ¶ added in v1.6.1
type WebServerConfig struct { ServerType string `mapstructure:"type"` Address string `mapstructure:"address"` MaxRequestSize int64 `mapstructure:"max_request_size"` Static StaticConfig `mapstructure:"static"` Tls HttpServerConfig `mapstructure:"tls"` }
Click to show internal directories.
Click to hide internal directories.