Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPServer ¶
type HTTPServer struct { HTTPAddr string HTTPSAddr string Certificate string PrivateKey string CA string InsecureSkipVerify bool Handler http.Handler // contains filtered or unexported fields }
HTTPServer is a http and https server.
func (*HTTPServer) GetHTTPAddr ¶
func (h *HTTPServer) GetHTTPAddr() string
GetHTTPAddr get the bind address of the http server.
func (*HTTPServer) GetHTTPSAddr ¶
func (h *HTTPServer) GetHTTPSAddr() string
GetHTTPSAddr get the bind address of the https server.
func (*HTTPServer) Stop ¶
func (h *HTTPServer) Stop() error
Stop halts the router and close the listners.
Click to show internal directories.
Click to hide internal directories.