Documentation
¶
Index ¶
- Constants
- func InitInternals() *http.Server
- func InitServer(domain string, domainConfig config.Configuration) *http.Server
- func Run(appVersion string, configFile string)
- type Server
- type Servers
- func (s *Servers) AttachPlain(domain string, port string, server *http.Server)
- func (s *Servers) AttachSecure(domain string, port string, server *http.Server)
- func (s *Servers) InitServers(domain string, domainConfig config.Configuration)
- func (s *Servers) StartDomainServer(domain string, scheme string)
Constants ¶
View Source
const DefaultTimeoutShutdown time.Duration = 5 * time.Second
DefaultTimeoutShutdown - Default Timeout for shutting down a context.
Variables ¶
This section is empty.
Functions ¶
func InitInternals ¶ added in v1.3.1
InitInternals - Generates the internals endpoints (not exposed on public ports :80 :443).
func InitServer ¶
func InitServer(domain string, domainConfig config.Configuration) *http.Server
InitServer - Generates the http.Server configuration.
Types ¶
type Servers ¶
Servers - Contains the HTTP/HTTPS servers.
func (*Servers) AttachPlain ¶
AttachPlain - Adds a new HTTP server in the listener container. NOTE: There will be only ONE server listening on a port.
This means the last processed will override all the previous shared settings. THIS COULD LEAD TO CONFLICTS WHEN SHARING THE SAME PORT.
func (*Servers) AttachSecure ¶
AttachSecure - Adds a new HTTPS server in the listener container. NOTE: There will be only ONE server listening on a port.
This means the last processed will override all the previous shared settings. THIS COULD LEAD TO CONFLICTS WHEN SHARING THE SAME PORT.
func (*Servers) InitServers ¶
func (s *Servers) InitServers(domain string, domainConfig config.Configuration)
InitServers - Returns a http.Server configuration for HTTP and HTTPS.
func (*Servers) StartDomainServer ¶
StartDomainServer - Configures and start listening for a particular domain.
Click to show internal directories.
Click to hide internal directories.