Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerInfo ¶
type ServerInfo struct {
HTTP *http.Server
HTTPS *http.Server
HTTPSKeyFile string
HTTPSCertFile string
HasBothHandlers bool
FastShutdown bool
}
func New ¶
func New(httpPort, httpsPort, HTTPSKeyFile, HTTPSCertFile string) *ServerInfo
func (*ServerInfo) ListenAndServe ¶
func (s *ServerInfo) ListenAndServe()
func (*ServerInfo) Shutdown ¶
func (s *ServerInfo) Shutdown() bool
Click to show internal directories.
Click to hide internal directories.